Skip to content

Commit d6a36f0

Browse files
committed
Merge branch 'main' into 211-python-dependencies
2 parents 0cbf5e6 + 5f0b18c commit d6a36f0

30 files changed

+2775
-2512
lines changed

.github/actions/test-py/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
fi
4848
4949
if [[ "${{ inputs.package }}" == "epidata" ]]; then
50-
getrkidata --help
50+
getcasedata --help
5151
getpopuldata --help
5252
getjhdata --help
5353
getdividata --help

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
- name: Dowload Data
228228
run: |
229229
mkdir -p data_dl
230-
getrkidata -o data_dl
230+
getcasedata -o data_dl
231231
getpopuldata -o data_dl
232232
getjhdata -o data_dl
233233
getdividata -o data_dl

cpp/models/secir/secir_parameters_io.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ IOResult<void> extrapolate_rki_results(std::vector<Model>& model, const std::str
344344
std::vector<double> num_icu(model.size(), 0.0);
345345

346346
BOOST_OUTCOME_TRY(details::read_rki_data(
347-
path_join(data_dir, "all_county_age_ma_rki.json"), id_name, region, date, num_exp, num_car, num_inf, num_hosp,
347+
path_join(data_dir, "cases_all_county_age_ma7.json"), id_name, region, date, num_exp, num_car, num_inf, num_hosp,
348348
dummy_icu, num_death, num_rec, t_car_to_rec, t_car_to_inf, t_exp_to_car, t_inf_to_rec, t_inf_to_hosp,
349349
t_hosp_to_rec, t_hosp_to_icu, t_icu_to_dead, mu_C_R, mu_I_H, mu_H_U, scaling_factor_inf));
350350
BOOST_OUTCOME_TRY(details::read_divi_data(path_join(data_dir, "county_divi.json"), id_name, region, date, num_icu));
@@ -406,7 +406,7 @@ IOResult<void> read_population_data_germany(std::vector<Model>& model, Date date
406406
log_warning("No DIVI data available for this date");
407407
}
408408
BOOST_OUTCOME_TRY(
409-
details::set_rki_data(model, path_join(dir, "all_age_ma_rki.json"), id_name, {0}, date, scaling_factor_inf));
409+
details::set_rki_data(model, path_join(dir, "cases_all_age_ma7.json"), id_name, {0}, date, scaling_factor_inf));
410410
BOOST_OUTCOME_TRY(
411411
details::set_population_data(model, path_join(dir, "county_current_population.json"), "ID_County", {0}));
412412
return success();
@@ -435,7 +435,7 @@ IOResult<void> read_population_data_state(std::vector<Model>& model, Date date,
435435
log_warning("No DIVI data available for this date");
436436
}
437437

438-
BOOST_OUTCOME_TRY(details::set_rki_data(model, path_join(dir, "all_state_age_ma_rki.json"), id_name, state, date,
438+
BOOST_OUTCOME_TRY(details::set_rki_data(model, path_join(dir, "cases_all_state_age_ma7.json"), id_name, state, date,
439439
scaling_factor_inf));
440440
BOOST_OUTCOME_TRY(
441441
details::set_population_data(model, path_join(dir, "county_current_population.json"), "ID_County", state));
@@ -465,7 +465,7 @@ IOResult<void> read_population_data_county(std::vector<Model>& model, Date date,
465465
else {
466466
log_warning("No DIVI data available for this date");
467467
}
468-
BOOST_OUTCOME_TRY(details::set_rki_data(model, path_join(dir, "all_county_age_ma_rki.json"), id_name, county, date,
468+
BOOST_OUTCOME_TRY(details::set_rki_data(model, path_join(dir, "cases_all_county_age_ma7.json"), id_name, county, date,
469469
scaling_factor_inf));
470470
BOOST_OUTCOME_TRY(
471471
details::set_population_data(model, path_join(dir, "county_current_population.json"), "ID_County", county));

pycode/examples/epidata/plot_RKI_data.py renamed to pycode/examples/epidata/PlotCaseData.py

Lines changed: 109 additions & 70 deletions
Large diffs are not rendered by default.

pycode/examples/epidata/PlotGermanData.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919
#############################################################################
20+
"""@PlotGermanData.py
21+
WARNING: This file is currently not tested and maintained.
22+
"""
2023
import pandas as pd
2124
import numpy as np
2225
import matplotlib.pyplot as plt
2326
from datetime import datetime
2427

25-
df = pd.read_json('all_age_rki.json')
28+
df = pd.read_json('cases_all_age.json')
2629

2730
for i in range(len(df)):
2831
df.Date[i] = df.Date[i].date()
@@ -54,7 +57,7 @@
5457
ax[2].set_xticks(tick_range)
5558
ax[2].set_xticklabels(datelist[tick_range],rotation=45)
5659
fig.tight_layout()
57-
fig.savefig('RKI_Groups.pdf')
60+
fig.savefig('Cases_Groups.pdf')
5861

5962

6063
all_data = np.sum(group_data, axis=1)
@@ -72,5 +75,5 @@
7275
ax[3].set_xticks(tick_range)
7376
ax[3].set_xticklabels(datelist[tick_range],rotation=45)
7477
fig.tight_layout()
75-
fig.savefig('RKI_All.pdf')
78+
fig.savefig('Cases_All.pdf')
7679
plt.show()

pycode/memilio-epidata/README.rst

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ Getting data from different sources and convert them to usable data using the py
3232

3333
Our sources are:
3434

35-
- Robert Koch institute (RKI) For German data:
35+
- Robert Koch Institute (RKI) for case data in Germany:
3636

37-
RKI Dashboard: https://experience.arcgis.com/experience/478220a4c454480e823b17327b2bf1d4/page/page_1/
37+
Robert Koch-Institut (2021): SARS-CoV-2 Infektionen in Deutschland, Berlin: Zenodo. DOI:10.5281/zenodo.4681153.
3838

39-
You can find the data also on:
39+
Data is downloaded from github: https://github.com/robert-koch-institut/SARS-CoV-2_Infektionen_in_Deutschland
4040

41-
https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0
41+
If the data on github is not available, downloading case data is tried from
42+
https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/66876b81065340a4a48710b062319336/about
43+
In this case the provided data is either geojson or csv.
4244

43-
The provided data is either geojson or csv.
44-
45-
- Population data (P) like "Einwoherzahl" for Bundesländer and Landkreise:
45+
- Population data (P) like "Einwohnerzahl" for Bundesländer and Landkreise:
4646

4747
https://opendata.arcgis.com/datasets/abad92e8eead46a4b0d252ee9438eb53_1.csv
4848

@@ -132,15 +132,15 @@ optional arguments working for some are:
132132
| | where new cases have been reported. |
133133
| | Note that this option will have a negative impact |
134134
| | on performance as well as on the storage space needed. |
135-
| | [rki] |
135+
| | [cases] |
136136
+---------------------------------------------+-----------------------------------------------------------+
137-
| -ma, --moving-average | The 7 day moving average is computed for the data. |
138-
| | Note that the --fill_dates option will be implicitly |
137+
| -m N, --moving-average N | The central N days moving average is computed for the data. |
138+
| | Note that the --impute_dates option will be implicitly |
139139
| | turned on, as computing the moving average requires all |
140-
| | dates to be available. [rki] |
140+
| | dates to be available. [cases] |
141141
+---------------------------------------------+-----------------------------------------------------------+
142142
| -sb, --split-berlin | Berlin data is split into different counties |
143-
| | , instead of having only one county for Berlin. [rki] |
143+
| | , instead of having only one county for Berlin. [cases] |
144144
+---------------------------------------------+-----------------------------------------------------------+
145145
| -u, -- update-data | Just chronological missing data is added, |
146146
| | **after** the existing ones [divi] |
@@ -159,31 +159,31 @@ When speaking about infected, means always infected inclusive the already recove
159159
============== ========== ================================== =================
160160
Source Folder Files Data description
161161
============== ========== ================================== =================
162-
RKI Germany infected_rki Numbers of infected over time for whole Germany
163-
RKI Germany deaths_rki Numbers of deaths over time for whole Germany
164-
RKI Germany all_germany_rki infected, deaths, recovered over time for whole Germany
165-
RKI Germany infected_state_rki infected over time for different states (Bundesländer)
166-
RKI Germany all_state_rki infected, deaths, recovered over time for different states (Bundesländer)
167-
RKI Germany infected_county_rki infected over time for different counties (Landkreise)
168-
RKI Germany all_county_rki infected, deaths, recovered over time for different counties (Landkreise)
169-
RKI Germany all_gender_rki infected, deaths, recovered over time for different gender
170-
RKI Germany all_age_rki infected, deaths, recovered over time for different age ranges
171-
RKI Germany all_state_age_rki infected, deaths, recovered over time for different age ranges and states
172-
RKI Germany all_state_gender_rki infected, deaths, recovered over time for different genders and states
173-
RKI Germany all_county_age_rki infected, deaths, recovered over time for different age ranges and counties
174-
RKI Germany all_county_gender_rki infected, deaths, recovered over time for different genders counties
175-
176-
RKI Germany vaccine_data_[DATE] administered vaccines, first shot, full vaccination, vaccination ratio, vacc ratio young, vacc ratio old
177-
178-
RKI-Estimation Germany all_germany_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for whole Germany
179-
RKI-Estimation Germany all_state_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different states (Bundesländer)
180-
RKI-Estimation Germany all_county_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different counties (Landkreise)
181-
RKI-Estimation Germany all_gender_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different gender
182-
RKI-Estimation Germany all_age_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges
183-
RKI-Estimation Germany all_state_age_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges and states
184-
RKI-Estimation Germany all_state_gender_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different genders and states
185-
RKI-Estimation Germany all_county_age_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges and counties
186-
RKI-Estimation Germany all_county_gender_rki_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different genders counties
162+
RKI Germany cases_infected Numbers of infected over time for whole Germany
163+
RKI Germany cases_deaths Numbers of deaths over time for whole Germany
164+
RKI Germany cases_all_germany infected, deaths, recovered over time for whole Germany
165+
RKI Germany cases_infected_state infected over time for different states (Bundesländer)
166+
RKI Germany cases_all_state infected, deaths, recovered over time for different states (Bundesländer)
167+
RKI Germany cases_infected_county infected over time for different counties (Landkreise)
168+
RKI Germany cases_all_county infected, deaths, recovered over time for different counties (Landkreise)
169+
RKI Germany cases_all_gender infected, deaths, recovered over time for different gender
170+
RKI Germany cases_all_age infected, deaths, recovered over time for different age ranges
171+
RKI Germany cases_all_state_age infected, deaths, recovered over time for different age ranges and states
172+
RKI Germany cases_all_state_gender infected, deaths, recovered over time for different genders and states
173+
RKI Germany cases_all_county_age infected, deaths, recovered over time for different age ranges and counties
174+
RKI Germany cases_all_county_gender infected, deaths, recovered over time for different genders counties
175+
176+
RKI Germany vaccine_data_[DATE] administered vaccines, first shot, full vaccination, vaccination ratio, vacc ratio young, vacc ratio old
177+
178+
RKI-Estimation Germany cases_all_germany_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for whole Germany
179+
RKI-Estimation Germany cases_all_state_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different states (Bundesländer)
180+
RKI-Estimation Germany cases_all_county_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different counties (Landkreise)
181+
RKI-Estimation Germany cases_all_gender_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different gender
182+
RKI-Estimation Germany cases_all_age_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges
183+
RKI-Estimation Germany cases_all_state_age_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges and states
184+
RKI-Estimation Germany cases_all_state_gender_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different genders and states
185+
RKI-Estimation Germany cases_all_county_age_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different age ranges and counties
186+
RKI-Estimation Germany cases_all_county_gender_estimated infected, deaths, recovered, recovered_estimated, deaths_estimated over time for different genders counties
187187

188188
P Germany county_current_population Einwohnerzahl for different age groups from the 2011 census, extrapolated to the current level
189189
P Germany migration Unchanged migration data

0 commit comments

Comments
 (0)