From ef7c36d5677783d229f7afbb8dff0edc517d4877 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Thu, 16 Feb 2023 08:41:24 +0100 Subject: [PATCH] regenerating all histograms --- src/HistogramFactoryAndPersister.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HistogramFactoryAndPersister.py b/src/HistogramFactoryAndPersister.py index b2350089bfd..727dc18ff3d 100644 --- a/src/HistogramFactoryAndPersister.py +++ b/src/HistogramFactoryAndPersister.py @@ -25,4 +25,6 @@ def _createAndSaveHistogramsForCountry(count, numCountries, country, dictByBatch # FK-TODO: use https://github.com/tqdm/tqdm print(f'saving histograms for country {count}/{numCountries}: {country}') dictByBatchcodeTable4Country = dictByBatchcodeTable[dictByBatchcodeTable['COUNTRY'] == country] - saveHistograms(dictByBatchcodeTable4Country, country) + explodedTable = MultiIndexExploder.explodeMultiIndexOfTable(dictByBatchcodeTable4Country) + histogramDescriptionTable = HistogramDescriptionTableFactory.createHistogramDescriptionTable(explodedTable) + saveHistograms(histogramDescriptionTable, country)