diff --git a/.gitignore b/.gitignore index 3b8d048baf7..2ba0e23b4c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/VAERS/ +src/VAERS/ .ipynb_checkpoints/ -config/ -results/ +src/config/ +src/results/ diff --git a/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb similarity index 89% rename from HowBadIsMyBatch.ipynb rename to src/HowBadIsMyBatch.ipynb index f37e8b691fb..b442bd6df69 100644 --- a/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "9de5907f-18f5-4cb1-903e-26028ff1fa03", "metadata": {}, "outputs": [], @@ -16,7 +16,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "a271254b", "metadata": {}, "outputs": [], @@ -72,7 +72,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "7b5d6df0", "metadata": {}, "outputs": [], @@ -99,7 +99,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "6b639196", "metadata": {}, "outputs": [], @@ -137,7 +137,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "3ebcba86", "metadata": {}, "outputs": [], @@ -167,7 +167,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "id": "c62cfaff", "metadata": {}, "outputs": [], @@ -218,7 +218,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "id": "99945ca8", "metadata": {}, "outputs": [], @@ -270,7 +270,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "id": "41d4fa30", "metadata": {}, "outputs": [], @@ -298,7 +298,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "id": "c40bd0f0", "metadata": {}, "outputs": [], @@ -328,7 +328,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "id": "09e6b511", "metadata": {}, "outputs": [], @@ -363,7 +363,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "id": "6aa28541", "metadata": {}, "outputs": [], @@ -396,7 +396,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "id": "3dacedfd", "metadata": {}, "outputs": [], @@ -406,7 +406,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "id": "fcc855dd", "metadata": {}, "outputs": [], @@ -420,7 +420,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "id": "ccb9838d", "metadata": {}, "outputs": [], @@ -459,7 +459,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "id": "e59a1825", "metadata": {}, "outputs": [], @@ -638,7 +638,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 16, "id": "e14465d7", "metadata": {}, "outputs": [], @@ -751,7 +751,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 17, "id": "44c121ec", "metadata": {}, "outputs": [], @@ -828,7 +828,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 18, "id": "c784bfef", "metadata": {}, "outputs": [], @@ -908,17 +908,51 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "id": "5a8bff1b", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "test_createBatchCodeTable (__main__.BatchCodeTableFactoryTest) ... ok\n", + "test_createBatchCodeTable2 (__main__.BatchCodeTableFactoryTest) ... ok\n", + "testcreateSummationTable (__main__.BatchCodeTableFactoryTest) ... ok\n", + "test_filterByCovid19_filterBy (__main__.DataFrameFilterTest) ... ok\n", + "test_filterByDose (__main__.DataFrameFilterTest) ... ok\n", + "test_filterByFirstDose (__main__.DataFrameFilterTest) ... ok\n", + "test_filterBySecondDose (__main__.DataFrameFilterTest) ... ok\n", + "test_convertVAX_LOTColumnToUpperCase (__main__.DataFrameNormalizerTest) ... ok\n", + "test_createDoseByMonthTable (__main__.DoseTableFactoryTest) ... ok\n", + "test_createDoseTable (__main__.DoseTableFactoryTest) ... ok\n", + "test_createBatchCodeTableByCountry (__main__.InternationalLotTableFactoryTest) ... ok\n", + "test_createInternationalLotTable (__main__.InternationalLotTableFactoryTest) ... ok\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 12 tests in 1.077s\n", + "\n", + "OK\n" + ] + }, + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "unittest.main(argv = [''], verbosity = 2, exit = False)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "id": "86e0e4f2", "metadata": {}, "outputs": [], @@ -938,7 +972,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "id": "e15bdcc0", "metadata": {}, "outputs": [], @@ -951,7 +985,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 22, "id": "9ee014eb", "metadata": {}, "outputs": [], @@ -969,10 +1003,149 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "id": "ab170c16", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
ADRsDEATHSDISABILITIESLIFE THREATENING ILLNESSES
VAX_LOT
039K20A4139712734
026L20A3472272625
011J20A3353343430
025L20A2576422027
012L20A2502643424
...............
028O20A1000
028M20A1000
028LZON1000
028LL2081000
ZTC5406931100
\n", + "

9002 rows × 4 columns

\n", + "
" + ], + "text/plain": [ + " ADRs DEATHS DISABILITIES LIFE THREATENING ILLNESSES\n", + "VAX_LOT \n", + "039K20A 4139 71 27 34\n", + "026L20A 3472 27 26 25\n", + "011J20A 3353 34 34 30\n", + "025L20A 2576 42 20 27\n", + "012L20A 2502 64 34 24\n", + "... ... ... ... ...\n", + "028O20A 1 0 0 0\n", + "028M20A 1 0 0 0\n", + "028LZON 1 0 0 0\n", + "028LL208 1 0 0 0\n", + "ZTC540693 1 1 0 0\n", + "\n", + "[9002 rows x 4 columns]" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ "# https://www.howbadismybatch.com/moderna.html\n", "saveBatchCodeTable(vaers, \"MODERNA\", \"results/batchCodes/moderna\")" diff --git a/help.txt b/src/help.txt similarity index 100% rename from help.txt rename to src/help.txt diff --git a/test/VAERS/2021VAERSData/2021VAERSDATA.csv b/src/test/VAERS/2021VAERSData/2021VAERSDATA.csv similarity index 100% rename from test/VAERS/2021VAERSData/2021VAERSDATA.csv rename to src/test/VAERS/2021VAERSData/2021VAERSDATA.csv diff --git a/test/VAERS/2021VAERSData/2021VAERSVAX.csv b/src/test/VAERS/2021VAERSData/2021VAERSVAX.csv similarity index 100% rename from test/VAERS/2021VAERSData/2021VAERSVAX.csv rename to src/test/VAERS/2021VAERSData/2021VAERSVAX.csv diff --git a/test/VAERS/2022VAERSData/2022VAERSDATA.csv b/src/test/VAERS/2022VAERSData/2022VAERSDATA.csv similarity index 100% rename from test/VAERS/2022VAERSData/2022VAERSDATA.csv rename to src/test/VAERS/2022VAERSData/2022VAERSDATA.csv diff --git a/test/VAERS/2022VAERSData/2022VAERSVAX.csv b/src/test/VAERS/2022VAERSData/2022VAERSVAX.csv similarity index 100% rename from test/VAERS/2022VAERSData/2022VAERSVAX.csv rename to src/test/VAERS/2022VAERSData/2022VAERSVAX.csv