@@ -330,9 +330,7 @@ def get_num_rows():
330
330
# print(' [%s|%s|%d] missing value' % (term, location, ew))
331
331
ew = flu .add_epiweeks (ew , 1 )
332
332
if num_missing > 0 :
333
- print (
334
- f" [{ term } |{ location } ] missing { int (num_missing )} /{ len (values )} value(s)"
335
- )
333
+ print (f" [{ term } |{ location } ] missing { int (num_missing )} /{ len (values )} value(s)" )
336
334
except Exception as ex :
337
335
print (f" [{ term } |{ location } ] caught exception (will NOT retry):" , ex )
338
336
@@ -350,11 +348,41 @@ def main():
350
348
# args and usage
351
349
parser = argparse .ArgumentParser ()
352
350
# fmt: off
353
- parser .add_argument ("location" , action = "store" , type = str , default = None , help = "location(s) (ex: all; US; TX; CA,LA,WY)" )
354
- parser .add_argument ("term" , action = "store" , type = str , default = None , help = 'term/query/topic (ex: all; /m/0cycc; "flu fever")' )
355
- parser .add_argument ("--first" , "-f" , default = None , type = int , help = "first epiweek override" )
356
- parser .add_argument ("--last" , "-l" , default = None , type = int , help = "last epiweek override" )
357
- parser .add_argument ("--country" , "-c" , default = "US" , type = str , help = "location country (ex: US; BR)" )
351
+ parser .add_argument (
352
+ "location" ,
353
+ action = "store" ,
354
+ type = str ,
355
+ default = None ,
356
+ help = "location(s) (ex: all; US; TX; CA,LA,WY)"
357
+ )
358
+ parser .add_argument (
359
+ "term" ,
360
+ action = "store" ,
361
+ type = str ,
362
+ default = None ,
363
+ help = 'term/query/topic (ex: all; /m/0cycc; "flu fever")'
364
+ )
365
+ parser .add_argument (
366
+ "--first" ,
367
+ "-f" ,
368
+ default = None ,
369
+ type = int ,
370
+ help = "first epiweek override"
371
+ )
372
+ parser .add_argument (
373
+ "--last" ,
374
+ "-l" ,
375
+ default = None ,
376
+ type = int ,
377
+ help = "last epiweek override"
378
+ )
379
+ parser .add_argument (
380
+ "--country" ,
381
+ "-c" ,
382
+ default = "US" ,
383
+ type = str ,
384
+ help = "location country (ex: US; BR)"
385
+ )
358
386
# fmt: on
359
387
args = parser .parse_args ()
360
388
0 commit comments