Skip to content

Commit 2654946

Browse files
committed
fixing logic
1 parent f25605d commit 2654946

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

google_symptoms/delphi_google_symptoms/date_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from itertools import product
55
from typing import Dict, List, Union
66

7-
import covidcast
7+
from delphi_epidata import Epidata
88
from delphi_utils.validator.utils import lag_converter
99
from pandas import to_datetime
1010

@@ -76,7 +76,7 @@ def generate_num_export_days(params: Dict, logger) -> [int]:
7676
num_export_days = params["indicator"]["num_export_days"]
7777
custom_run = False if not params["common"].get("custom_run") else params["common"].get("custom_run", False)
7878

79-
if num_export_days is None:
79+
if num_export_days is None and not custom_run:
8080
# Generate a list of signals we expect to produce
8181
sensor_names = set(
8282
"_".join([metric, smoother, "search"])

google_symptoms/delphi_google_symptoms/run.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
from itertools import product
1010

1111
import numpy as np
12-
from delphi_epidata import Epidata
1312
from delphi_utils import create_export_csv, get_structured_logger
14-
from delphi_utils.validator.utils import lag_converter
15-
from pandas import to_datetime
1613

1714
from .constants import COMBINED_METRIC, FULL_BKFILL_START_DATE, GEO_RESOLUTIONS, SMOOTHERS, SMOOTHERS_MAP
1815
from .date_utils import generate_num_export_days

0 commit comments

Comments
 (0)