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
|
import numpy as np
|
||||||
|
|
||||||
|
def createGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
|
||||||
def createAndSaveGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
|
|
||||||
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
|
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
|
||||||
batchCodeTable.index.set_names("Batch", inplace=True)
|
batchCodeTable.index.set_names("Batch", inplace=True)
|
||||||
if minADRsForLethality is not None:
|
if minADRsForLethality is not None:
|
||||||
@@ -22,6 +20,4 @@ def createAndSaveGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory
|
|||||||
'Severe reports',
|
'Severe reports',
|
||||||
'Lethality'
|
'Lethality'
|
||||||
]]
|
]]
|
||||||
# FK-TODO: remove Global.json
|
|
||||||
IOUtils.saveDataFrameAsJson(batchCodeTable, '../docs/data/batchCodeTables/Global.json')
|
|
||||||
return batchCodeTable
|
return batchCodeTable
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"from DateProvider import DateProvider\n",
|
"from DateProvider import DateProvider\n",
|
||||||
"from InternationalVaersCovid19Provider import getInternationalVaersCovid19, get_international_VAERSVAX_VAERSSYMPTOMS_Covid19\n",
|
"from InternationalVaersCovid19Provider import getInternationalVaersCovid19, get_international_VAERSVAX_VAERSSYMPTOMS_Covid19\n",
|
||||||
"from BatchCodeTableHtmlUpdater import updateBatchCodeTableHtmlFile\n",
|
"from BatchCodeTableHtmlUpdater import updateBatchCodeTableHtmlFile\n",
|
||||||
"from BatchCodeTablePersister import createAndSaveGlobalBatchCodeTable\n",
|
"from BatchCodeTablePersister import createGlobalBatchCodeTable\n",
|
||||||
"from SymptomByBatchcodeTableFactory import SymptomByBatchcodeTableFactory\n",
|
"from SymptomByBatchcodeTableFactory import SymptomByBatchcodeTableFactory\n",
|
||||||
"from HistogramFactoryAndPersister import createAndSaveGlobalHistograms\n",
|
"from HistogramFactoryAndPersister import createAndSaveGlobalHistograms\n",
|
||||||
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
|
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"batchCodeTable = createAndSaveGlobalBatchCodeTable(\n",
|
"batchCodeTable = createGlobalBatchCodeTable(\n",
|
||||||
" minADRsForLethality = 100,\n",
|
" minADRsForLethality = 100,\n",
|
||||||
" batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19))\n",
|
" batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19))\n",
|
||||||
"batchCodeTable"
|
"batchCodeTable"
|
||||||
|
|||||||
Reference in New Issue
Block a user