removing batchCodeTable

This commit is contained in:
frankknoll
2023-04-13 10:51:45 +02:00
parent 5c205acd32
commit 8bc3d63a3a
3 changed files with 3 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,6 @@
from IOUtils import IOUtils
import numpy as np
def createAndSaveGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
def createGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
batchCodeTable.index.set_names("Batch", inplace=True)
if minADRsForLethality is not None:
@@ -22,6 +20,4 @@ def createAndSaveGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory
'Severe reports',
'Lethality'
]]
# FK-TODO: remove Global.json
IOUtils.saveDataFrameAsJson(batchCodeTable, '../docs/data/batchCodeTables/Global.json')
return batchCodeTable

View File

@@ -18,7 +18,7 @@
"from DateProvider import DateProvider\n",
"from InternationalVaersCovid19Provider import getInternationalVaersCovid19, get_international_VAERSVAX_VAERSSYMPTOMS_Covid19\n",
"from BatchCodeTableHtmlUpdater import updateBatchCodeTableHtmlFile\n",
"from BatchCodeTablePersister import createAndSaveGlobalBatchCodeTable\n",
"from BatchCodeTablePersister import createGlobalBatchCodeTable\n",
"from SymptomByBatchcodeTableFactory import SymptomByBatchcodeTableFactory\n",
"from HistogramFactoryAndPersister import createAndSaveGlobalHistograms\n",
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
@@ -130,7 +130,7 @@
"metadata": {},
"outputs": [],
"source": [
"batchCodeTable = createAndSaveGlobalBatchCodeTable(\n",
"batchCodeTable = createGlobalBatchCodeTable(\n",
" minADRsForLethality = 100,\n",
" batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19))\n",
"batchCodeTable"