adapting dropdown text

This commit is contained in:
Frank Knoll
2024-07-12 17:34:49 +02:00
parent 4f8cd31ad3
commit b1fe52817f
3 changed files with 9 additions and 6 deletions

View File

@@ -516,7 +516,7 @@
"metadata": {},
"outputs": [],
"source": [
"def saveProportionalReportingRatiosAndUpdateHtmlFile(prrByVaccineAndSymptom, webAppBaseDir):\n",
"def saveProportionalReportingRatiosAndUpdateHtmlFile(prrByVaccineAndSymptom, webAppBaseDir, defaultSelectVaccineOptionText):\n",
" prrByVaccineAndSymptom = DataFrameFilter.withoutZeroRowsAndZeroColumns(prrByVaccineAndSymptom)\n",
" filenameBySymptom = saveProportionalReportingRatios4PrrByVaccineBySymptomWithoutZeroPrrs(prrByVaccineAndSymptom, webAppBaseDir)\n",
" filenameByDrug = saveProportionalReportingRatios4PrrBySymptomByVaccineWithHighPrrs(prrByVaccineAndSymptom, webAppBaseDir)\n",
@@ -527,7 +527,8 @@
" vaccinesDescr = {\n",
" 'vaccines': list(prrByVaccineAndSymptom.index),\n",
" 'filenameByDrug': filenameByDrug },\n",
" htmlFile = os.path.normpath(webAppBaseDir + '/index.html'))\n"
" htmlFile = os.path.normpath(webAppBaseDir + '/index.html'),\n",
" defaultSelectVaccineOptionText = defaultSelectVaccineOptionText)\n"
]
},
{
@@ -551,7 +552,8 @@
" prrByVaccineAndSymptom = pd.read_csv(\n",
" 'data/prrByDrugAndSymptom-EudraVigilance.csv',\n",
" index_col = 'DRUG'),\n",
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByDrugs')"
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByDrugs',\n",
" defaultSelectVaccineOptionText = 'Select Drug')"
]
},
{
@@ -586,7 +588,8 @@
"source": [
"saveProportionalReportingRatiosAndUpdateHtmlFile(\n",
" prrByVaccineAndSymptom = prrByVaccineAndSymptom,\n",
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByVaccines')"
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByVaccines',\n",
" defaultSelectVaccineOptionText = 'Select Vaccine')"
]
},
{

View File

@@ -5,7 +5,7 @@ from SymptomsCausedByVaccines.HtmlUtils import getSymptomOptions, getVaccineOpti
from SymptomsCausedByVaccines.OptionsSetter import OptionsSetter
def updateHtmlFile(symptomsDescr, vaccinesDescr, htmlFile, defaultSelectVaccineOptionText = 'Select Vaccine'):
def updateHtmlFile(symptomsDescr, vaccinesDescr, htmlFile, defaultSelectVaccineOptionText):
_saveOptions(
options = getSymptomOptions(
symptoms = symptomsDescr['symptoms'],