@@ -127,20 +127,20 @@ def compare_to_api(actual_files, run_type, issues=datetime.now().strftime("%Y%m%
127
127
patch_dirs = sorted (list (Path (f"{ SOURCE_DIR } /patch_dir/" ).glob ("issue*" )))
128
128
# Testing for number of signals
129
129
for patch_dir in patch_dirs :
130
- patch_files = sorted (list (Path (f"{ patch_dir } /google-symptom " ).glob ("*.csv" )))
130
+ patch_files = sorted (list (Path (f"{ patch_dir } /google-symptoms " ).glob ("*.csv" )))
131
131
check_signal_num (patch_files )
132
132
133
133
# Testing for matching regular run with patch run (the enddate should match up to the last date in the patch run)
134
134
regular_dir = sorted (list (Path (f"{ SOURCE_DIR } /regular_run" ).glob ("*.csv" )))
135
- patch_dir = sorted (list (Path (f"{ SOURCE_DIR } /patch_dir/issue_yyyymmdd/google-symptom " ).glob ("*.csv" )))
135
+ patch_dir = sorted (list (Path (f"{ SOURCE_DIR } /patch_dir/issue_yyyymmdd/google-symptoms " ).glob ("*.csv" )))
136
136
compare (regular_dir , patch_dir )
137
137
138
138
# Testing against the api; The data in the api require a range of date to validate
139
139
# as runs at the time some of the earlier date may be only available on previous issue dates
140
- compare_to_api (sorted (list (Path (f"{ SOURCE_DIR } /fix_patch_today/issue_20240801/google-symptom " ).glob (f"*.csv" ))),
140
+ compare_to_api (sorted (list (Path (f"{ SOURCE_DIR } /fix_patch_today/issue_20240801/google-symptoms " ).glob (f"*.csv" ))),
141
141
"fix_patch" , Epidata .range ("20240731" , str (20240802 )))
142
142
for i in range (2 ,6 ):
143
- compare_to_api (sorted (list (Path (f"{ SOURCE_DIR } /fix_patch_today/issue_2024080{ i } /google-symptom " ).glob (f"*.csv" ))), "fix_patch" , Epidata .range (str (20240800 + i - 1 ), str (20240801 + i )))
143
+ compare_to_api (sorted (list (Path (f"{ SOURCE_DIR } /fix_patch_today/issue_2024080{ i } /google-symptoms " ).glob (f"*.csv" ))), "fix_patch" , Epidata .range (str (20240800 + i - 1 ), str (20240801 + i )))
144
144
145
145
146
146
0 commit comments