always updating VAERS files
This commit is contained in:
@@ -63,7 +63,6 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"updateVAERSFiles(\n",
|
"updateVAERSFiles(\n",
|
||||||
" needsUpdate = True,\n",
|
|
||||||
" years = years_from_2020_to_present,\n",
|
" years = years_from_2020_to_present,\n",
|
||||||
" workingDirectory = os.getcwd())"
|
" workingDirectory = os.getcwd())"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -56,8 +56,7 @@ def downloadVAERSFileAndUnzip(file, workingDirectory):
|
|||||||
zipFile = downloadedFile,
|
zipFile = downloadedFile,
|
||||||
dstDir = workingDirectory + '/VAERS/')
|
dstDir = workingDirectory + '/VAERS/')
|
||||||
|
|
||||||
def updateVAERSFiles(needsUpdate, years, workingDirectory):
|
def updateVAERSFiles(years, workingDirectory):
|
||||||
if needsUpdate:
|
for year in years:
|
||||||
for year in years:
|
downloadVAERSFileAndUnzip(f'{year}VAERSData.zip', workingDirectory)
|
||||||
downloadVAERSFileAndUnzip(f'{year}VAERSData.zip', workingDirectory)
|
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)
|
||||||
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)
|
|
||||||
Reference in New Issue
Block a user