diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index efcbaa5db77..046e6bdff68 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -503,6 +503,15 @@ "prrBySymptomByVaccineWithHighPrrs" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByVaccines'" + ] + }, { "cell_type": "code", "execution_count": null, @@ -512,7 +521,7 @@ "source": [ "saveProportionalReportingRatios(\n", " prrByVaccineBySymptomWithoutZeroPrrs,\n", - " directory = os.path.normpath(os.getcwd() + '/../docs/data/ProportionalReportingRatios/symptoms'))" + " directory = os.path.normpath(webAppBaseDir + '/data/ProportionalReportingRatios/symptoms'))" ] }, { @@ -524,7 +533,7 @@ "source": [ "saveProportionalReportingRatios(\n", " prrBySymptomByVaccineWithHighPrrs,\n", - " directory = os.path.normpath(os.getcwd() + '/../docs/data/ProportionalReportingRatios/vaccines'))" + " directory = os.path.normpath(webAppBaseDir + '/data/ProportionalReportingRatios/vaccines'))" ] }, { @@ -537,7 +546,7 @@ "updateHtmlFile(\n", " symptoms = list(prrByVaccineAndSymptom.columns),\n", " vaccines = list(prrByVaccineAndSymptom.index),\n", - " htmlFile = \"../docs/SymptomsCausedByVaccines/index.html\")" + " htmlFile = os.path.normpath(webAppBaseDir + '/index.html'))" ] }, { @@ -599,6 +608,15 @@ "prrBySymptomByLotWithHighPrrs" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByCOVIDLots'" + ] + }, { "cell_type": "code", "execution_count": null, @@ -607,7 +625,7 @@ "source": [ "saveProportionalReportingRatios(\n", " prrByLotBySymptomWithoutZeroPrrs,\n", - " directory = os.path.normpath(os.getcwd() + '/../docs/SymptomsCausedByCOVIDLots/data/ProportionalReportingRatios/symptoms'))" + " directory = os.path.normpath(webAppBaseDir + '/data/ProportionalReportingRatios/symptoms'))" ] }, { @@ -618,7 +636,7 @@ "source": [ "saveProportionalReportingRatios(\n", " prrBySymptomByLotWithHighPrrs,\n", - " directory = os.path.normpath(os.getcwd() + '/../docs/SymptomsCausedByCOVIDLots/data/ProportionalReportingRatios/vaccines'))" + " directory = os.path.normpath(webAppBaseDir + '/data/ProportionalReportingRatios/vaccines'))" ] }, { @@ -630,7 +648,7 @@ "updateHtmlFile4SymptomsCausedByCOVIDLots(\n", " symptoms = list(prrByLotAndSymptom.columns),\n", " batches = list(prrByLotAndSymptom.index),\n", - " htmlFile = \"../docs/SymptomsCausedByCOVIDLots/index.html\")" + " htmlFile = os.path.normpath(webAppBaseDir + '/index.html'))" ] }, {