removing batchCodeTable
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user