@@ -56,8 +56,6 @@ def fetch_divi_data(
5656) -> pd .DataFrame :
5757 """! Downloads or reads the DIVI ICU data and writes them in different files.
5858
59- Available data starts from 2020-04-24.
60- If the given start_date is earlier, it is changed to this date and a warning is printed.
6159 If it does not already exist, the folder Germany is generated in the given out_folder.
6260 If read_data == True and the file "FullData_DIVI.json" exists, the data is read form this file
6361 and stored in a pandas dataframe. If read_data = True and the file does not exist the program is stopped.
@@ -125,6 +123,14 @@ def preprocess_divi_data(df_raw: pd.DataFrame,
125123 start_date .strftime ("%Y-%m-%d" ) +
126124 ". Changed it to 2020-04-24." )
127125 start_date = date (2020 , 4 , 24 )
126+ # Dataset will no longer be updated from CW29 2024 on.
127+ if end_date > date (2024 , 7 , 21 ):
128+ gd .default_print (
129+ 'Warning' ,
130+ "Dataset will no longer be updated after 2024-07-21. "
131+ "You asked for " +
132+ start_date .strftime ("%Y-%m-%d" ) +
133+ ". Use the provided data carefully." )
128134
129135 if conf_obj .checks is True :
130136 divi_data_sanity_checks (df_raw )
@@ -252,6 +258,8 @@ def get_divi_data(read_data: bool = dd.defaultDict['read_data'],
252258
253259 Available data starts from 2020-04-24.
254260 If the given start_date is earlier, it is changed to this date and a warning is printed.
261+ It has been announced that the dataset will no longer be updated from 2024-07-21 (CW29).
262+ If end_date is later, a warning is displayed.
255263 If it does not already exist, the folder Germany is generated in the given out_folder.
256264 If read_data == True and the file "FullData_DIVI.json" exists, the data is read form this file
257265 and stored in a pandas dataframe. If read_data = True and the file does not exist the program is stopped.
0 commit comments