From 8e45d660c72e2184fb230528a7ccdb24422ba87d Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 4 Jan 2023 11:37:56 +0100 Subject: [PATCH] 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" ] },