X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=774b333a77cf96951609c4363f219f96d158244a;hb=ea8a53f23b20bebeeabb6716a5587731f60b28d5;hp=2a89c4b0113c0331483f4ebd8009831fd2cfd916;hpb=b545a75f33571b49f279d825adc3ae8d209ed2c2;p=berlin-corona-table diff --git a/enhance_table.py b/enhance_table.py index 2a89c4b..774b333 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -1,11 +1,5 @@ #!//usr/bin/env python3 -import sys -if len(sys.argv) != 2: - print('Expecting infections table file path as only argument.') - exit(1) -infections_table = sys.argv[1] - # District population numbers as per Wikipedia. district_pops = { 'CW': 342332, @@ -23,6 +17,12 @@ district_pops = { 'sum': 3754418, } +# Read infections table file lines. +import sys +if len(sys.argv) != 2: + print('Expecting infections table file path as only argument.') + exit(1) +infections_table = sys.argv[1] f = open(infections_table, 'r') lines = f.readlines() f.close()