-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
27 lines (18 loc) · 980 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pandas as pd
import os
from pathlib import Path
current_dir = os.path.dirname(__file__)
# parernt = os.pardir
# print os.path.abspath(os.path.join(yourpath, os.pardir))
# Paths and Dirs
WORLDMETER_DATA = os.path.join(current_dir,'DW/raw_data/worldmeter')
GOV_RESOURCE_PATH = os.path.join(current_dir,'resources/csv/gov_resource.csv')
MAPPER_PATH = os.path.join(current_dir,'resources/csv/column_remapper.csv')
mapper = pd.read_csv(MAPPER_PATH, index_col ='key', usecols = ['key', 'value'])
column_remapper = mapper.iloc[:,0]
GOVERNMENT_RESPONSE_URL = 'https://ocgptweb.azurewebsites.net/CSVDownload'
POPULATION_CSV_PATH = os.path.join(current_dir,'DW/raw_data/population_data.csv')
GOV_DATA_RESULTS_DIR = os.path.join(current_dir, 'DW/raw_data/gov_data')
RESULTS_PATH = os.path.join(GOV_DATA_RESULTS_DIR, 'all_dates.csv')
RESULTS_PATH_SEIR = os.path.join(GOV_DATA_RESULTS_DIR, 'all_dates_seir.csv')
GOV_DATA_PATH = os.path.join(current_dir, 'DW/raw_data/gov_data')