Skip to content

Commit 230086a

Browse files
committed
suggested changes
1 parent 3d5701c commit 230086a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

claims_hosp/delphi_claims_hosp/backfill.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def merge_existing_backfill_files(backfill_dir, backfill_file, issue_date, logge
7979
"""
8080
Merge existing backfill with the patch data included.
8181
82+
When the indicator fails for some reason or another, there's a gap in the backfill files.
83+
The patch to fill in the missing dates happens later down the line when the backfill files are already merged.
84+
This function takes the merged files with the missing date, insert the particular date, and merge back the file.
8285
Parameters
8386
----------
8487
issue_date : datetime

claims_hosp/delphi_claims_hosp/patch.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
"""
2-
This module is used for patching data in the delphi_doctor_visits package.
2+
This module is used for patching data in the delphi_claims_hosp package.
33
44
To use this module, you need to specify the range of issue dates in params.json, like so:
55
66
{
77
"common": {
8+
"custom_flag" : true,
89
...
910
},
1011
"validation": {
1112
...
1213
},
1314
"patch": {
14-
"patch_dir": "/covidcast-indicators/doctor_visits/AprilPatch",
15+
"patch_dir": "/covidcast-indicators/hopspital-admissions/patch",
1516
"start_issue": "2024-04-20",
1617
"end_issue": "2024-04-21"
1718
}
@@ -31,7 +32,7 @@
3132

3233
def patch():
3334
"""
34-
Run the doctor visits indicator for a range of issue dates.
35+
Run the hospital-admissions indicator for a range of issue dates.
3536
3637
The range of issue dates is specified in params.json using the following keys:
3738
- "patch": Only used for patching data

0 commit comments

Comments
 (0)