Skip to content

Commit 8814554

Browse files
committed
fix typo and add missing abbreviation to constants
1 parent 6ee8bb7 commit 8814554

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/acquisition/rvdss/constants.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@
4040
"canada":"ca",
4141
"can":"ca" ,
4242
"at":"atlantic",
43+
"atl":"atlantic",
4344
"pr" :"prairies" ,
4445
"terr" :"territories"
4546
}
4647

47-
REGIONS = ['atlantic','atl','province of québec','québec','qc','province of ontario','ontario','on',
48+
REGIONS = ['atlantic','atl','at','province of québec','québec','qc','province of ontario','ontario','on',
4849
'prairies', 'pr', "british columbia", 'bc',"territories",'terr']
4950
NATION = ["canada","can",'ca']
5051

51-
BASHBOARD_BASE_URLS_2023=["https://health-infobase.canada.ca/src/data/respiratory-virus-detections/archive/2024-06-20/",
52+
DASHBOARD_BASE_URLS_2023=["https://health-infobase.canada.ca/src/data/respiratory-virus-detections/archive/2024-06-20/",
5253
"https://health-infobase.canada.ca/src/data/respiratory-virus-detections/archive/2024-06-27/",
5354
"https://health-infobase.canada.ca/src/data/respiratory-virus-detections/archive/2024-07-04/",
5455
"https://health-infobase.canada.ca/src/data/respiratory-virus-detections/archive/2024-07-11/",

src/acquisition/rvdss/rvdss_historic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from datetime import datetime,timedelta
77
import math
88

9-
from constants import BASHBOARD_BASE_URLS_2023, HISTORIC_SEASON_URL, ALTENRATIVE_SEASON_BASE_URL, SEASON_BASE_URL, LAST_WEEK_OF_YEAR
9+
from constants import DASHBOARD_BASE_URLS_2023, HISTORIC_SEASON_URL, ALTENRATIVE_SEASON_BASE_URL, SEASON_BASE_URL, LAST_WEEK_OF_YEAR
1010
from utils import abbreviate_virus,abbreviate_geo,create_geo_types,check_date_format,get_revised_data,get_weekly_data
1111
#%% Functions
1212

@@ -420,7 +420,7 @@ def get_season_reports(url):
420420
old_detection_data = pd.read_csv('season_2023_2024/respiratory_detections.csv').set_index(['epiweek', 'time_value', 'issue', 'geo_type', 'geo_value'])
421421
old_positive_data = pd.read_csv('season_2023_2024/positive_tests.csv').set_index(['epiweek', 'time_value', 'issue', 'geo_type', 'geo_value'])
422422

423-
for base_url in BASHBOARD_BASE_URLS_2023:
423+
for base_url in DASHBOARD_BASE_URLS_2023:
424424
# Get weekly dashboard data
425425
weekly_data = get_weekly_data(base_url,2023).set_index(['epiweek', 'time_value', 'issue', 'geo_type', 'geo_value'])
426426
positive_data = get_revised_data(base_url)

0 commit comments

Comments
 (0)