Skip to content

Commit e195410

Browse files
authored
[chng] Name change from code review
1 parent f084bce commit e195410

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

changehc/delphi_changehc/download_ftp_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_files_from_dir(sftp, filedate, out_path):
4141
sftp.get(infile, outfile, callback=callback_for_filename)
4242

4343

44-
def download_covid(filedate, out_path, ftp_conn):
44+
def download_counts(filedate, out_path, ftp_conn):
4545
"""Download files necessary to create chng- signals from ftp server.
4646
4747
Args:

changehc/delphi_changehc/run.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from delphi_utils import get_structured_logger
1515

1616
# first party
17-
from .download_ftp_files import download_covid
17+
from .download_ftp_files import download_counts
1818
from .load_data import load_combined_data, load_cli_data, load_flu_data
1919
from .update_sensor import CHCSensorUpdater
2020

@@ -26,13 +26,7 @@ def retrieve_files(params, filedate, logger):
2626

2727
## download recent files from FTP server
2828
logger.info("downloading recent files through SFTP")
29-
#if "covid" in params["indicator"]["types"]:
30-
# download_covid(filedate, params["indicator"]["input_cache_dir"], params["indicator"]["ftp_conn"])
31-
#if "cli" in params["indicator"]["types"]:
32-
# download_cli(filedate, params["indicator"]["input_cache_dir"], params["indicator"]["ftp_conn"])
33-
#if "flu" in params["indicator"]["types"]:
34-
# download_flu(filedate, params["indicator"]["input_cache_dir"], params["indicator"]["ftp_conn"])
35-
download_covid(filedate, params["indicator"]["input_cache_dir"], params["indicator"]["ftp_conn"])
29+
download_counts(filedate, params["indicator"]["input_cache_dir"], params["indicator"]["ftp_conn"])
3630

3731
denom_file = "%s/%s_Counts_Products_Denom.dat.gz" % (params["indicator"]["input_cache_dir"],filedate)
3832
covid_file = "%s/%s_Counts_Products_Covid.dat.gz" % (params["indicator"]["input_cache_dir"],filedate)

0 commit comments

Comments
 (0)