From d2238cb7c0d38b73c4c32ecaafe73b23e5362eba Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 4 Jan 2023 11:22:15 +0100 Subject: [PATCH 1/3] doc --- src/help.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/help.txt b/src/help.txt index 3021bc79063..48297679160 100644 --- a/src/help.txt +++ b/src/help.txt @@ -1,9 +1,5 @@ jupyter notebook - -get VAERS data: -- download data (e.g. 2022VAERSData.zip) from https://vaers.hhs.gov/data/datasets.html and save and unzip in VAERS folder - FK-FIXME: FK-TODO: From a2bacfd8a6ccc3425da2efd6d957dc08606a1fc4 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 4 Jan 2023 11:22:40 +0100 Subject: [PATCH 2/3] adding year 2023 --- src/HowBadIsMyBatch.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index f9d5cdae9b0..3afb59efd28 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -54,7 +54,7 @@ "source": [ "updateVAERSFiles(\n", " needsUpdate = needsUpdate,\n", - " years = [2022],\n", + " years = [2022, 2023],\n", " workingDirectory = os.getcwd())" ] }, @@ -65,7 +65,7 @@ "metadata": {}, "outputs": [], "source": [ - "internationalVaersCovid19 = getInternationalVaersCovid19(years = [2020, 2021, 2022])\n", + "internationalVaersCovid19 = getInternationalVaersCovid19(years = [2020, 2021, 2022, 2023])\n", "internationalVaersCovid19" ] }, @@ -138,7 +138,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0]" + "version": "3.10.8" }, "vscode": { "interpreter": { From 8e45d660c72e2184fb230528a7ccdb24422ba87d Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 4 Jan 2023 11:37:56 +0100 Subject: [PATCH 3/3] refactoring --- src/HowBadIsMyBatch.ipynb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index 3afb59efd28..4db00c56585 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -45,6 +45,16 @@ "print('needsUpdate:', needsUpdate)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "194b7357", + "metadata": {}, + "outputs": [], + "source": [ + "years_from_2020_to_present = list(range(2020, datetime.now().year + 1))" + ] + }, { "cell_type": "code", "execution_count": null, @@ -54,7 +64,7 @@ "source": [ "updateVAERSFiles(\n", " needsUpdate = needsUpdate,\n", - " years = [2022, 2023],\n", + " years = years_from_2020_to_present,\n", " workingDirectory = os.getcwd())" ] }, @@ -65,7 +75,7 @@ "metadata": {}, "outputs": [], "source": [ - "internationalVaersCovid19 = getInternationalVaersCovid19(years = [2020, 2021, 2022, 2023])\n", + "internationalVaersCovid19 = getInternationalVaersCovid19(years = years_from_2020_to_present)\n", "internationalVaersCovid19" ] },