|
5 | 5 | when the module is run with `python -m MODULE_NAME`. |
6 | 6 | """ |
7 | 7 | import atexit |
| 8 | +import time |
8 | 9 | from datetime import datetime |
9 | 10 | from multiprocessing import cpu_count |
10 | | -import time |
11 | | -from typing import Dict, Any |
12 | | - |
13 | | -from delphi_utils import ( |
14 | | - add_prefix, |
15 | | - create_export_csv, |
16 | | - get_structured_logger |
| 11 | +from typing import Any, Dict |
| 12 | + |
| 13 | +from delphi_utils import add_prefix, create_export_csv, get_structured_logger, pool_and_threadedlogger |
| 14 | + |
| 15 | +from .backfill import merge_backfill_file, store_backfill_file |
| 16 | +from .constants import ( |
| 17 | + AGE_GROUPS, |
| 18 | + END_FROM_TODAY_MINUS, |
| 19 | + NONPARENT_GEO_RESOLUTIONS, |
| 20 | + PARENT_GEO_RESOLUTIONS, |
| 21 | + RAW_POSITIVE, |
| 22 | + RAW_TEST_PER_DEVICE, |
| 23 | + SENSORS, |
| 24 | + SMOOTHED_POSITIVE, |
| 25 | + SMOOTHED_TEST_PER_DEVICE, |
| 26 | + SMOOTHERS, |
17 | 27 | ) |
18 | | -from delphi_utils import pool_and_threadedlogger |
19 | | - |
20 | | -from .constants import (END_FROM_TODAY_MINUS, |
21 | | - SMOOTHED_POSITIVE, RAW_POSITIVE, |
22 | | - SMOOTHED_TEST_PER_DEVICE, RAW_TEST_PER_DEVICE, |
23 | | - PARENT_GEO_RESOLUTIONS, SENSORS, SMOOTHERS, NONPARENT_GEO_RESOLUTIONS, |
24 | | - AGE_GROUPS) |
25 | | -from .generate_sensor import generate_sensor_for_parent_geo, generate_sensor_for_nonparent_geo |
| 28 | +from .generate_sensor import generate_sensor_for_nonparent_geo, generate_sensor_for_parent_geo |
26 | 29 | from .geo_maps import geo_map |
27 | | -from .pull import (pull_quidel_covidtest, |
28 | | - check_export_start_date, |
29 | | - check_export_end_date, |
30 | | - update_cache_file) |
31 | | -from .backfill import (store_backfill_file, merge_backfill_file) |
| 30 | +from .pull import check_export_end_date, check_export_start_date, pull_quidel_covidtest, update_cache_file |
| 31 | + |
32 | 32 |
|
33 | 33 | def log_exit(start_time, stats, logger): |
34 | 34 | """Log at program exit.""" |
|
0 commit comments