From 97ec1683cea4d27612372d82ade5cfafa0924ae0 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Thu, 16 Feb 2023 15:02:48 +0100 Subject: [PATCH] refactoring --- src/HistogramFactoryAndPersister.py | 2 +- src/HowBadIsMyBatch.ipynb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/HistogramFactoryAndPersister.py b/src/HistogramFactoryAndPersister.py index 2140aeba794..eb8db2d12c6 100644 --- a/src/HistogramFactoryAndPersister.py +++ b/src/HistogramFactoryAndPersister.py @@ -11,7 +11,7 @@ def createAndSaveGlobalHistograms(symptomByBatchcodeTable): saveHistograms(histogramDescriptionTable, 'Global') -def createAndSaveHistogramsForCountries(symptomByBatchcodeTable, countries): +def createAndSaveHistogramsForCountries(symptomByBatchcodeTable): dictByBatchcodeTable = createHistograms(symptomByBatchcodeTable) explodedTable = MultiIndexExploder.explodeMultiIndexOfTable(dictByBatchcodeTable) histogramDescriptionTable = HistogramDescriptionTableFactory.createHistogramDescriptionTable(explodedTable) diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index 6f43c4bf1c8..afd521543a4 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -20,8 +20,7 @@ "from BatchCodeTableHtmlUpdater import updateBatchCodeTableHtmlFile\n", "from BatchCodeTablePersister import createAndSaveBatchCodeTables\n", "from SymptomByBatchcodeTableFactory import SymptomByBatchcodeTableFactory\n", - "from HistogramFactoryAndPersister import createAndSaveGlobalHistograms, createAndSaveHistogramsForCountries\n", - "from HtmlUtils import getCountries" + "from HistogramFactoryAndPersister import createAndSaveGlobalHistograms, createAndSaveHistogramsForCountries" ] }, { @@ -128,7 +127,7 @@ "metadata": {}, "outputs": [], "source": [ - "createAndSaveHistogramsForCountries(symptomByBatchcodeTable, getCountries(international_VAERSVAX_Covid19))" + "createAndSaveHistogramsForCountries(symptomByBatchcodeTable)" ] }, {