From a9ce6d9c8dc27c1aeb503aea093273451172a6cc Mon Sep 17 00:00:00 2001 From: Nicola Tarocco Date: Wed, 7 Jun 2023 11:39:56 +0200 Subject: [PATCH] remove Git LFS and change data file URL * removes the Excel file stored in Git LFS and disable LFS * replaces the local Excel file with an URL to download the file from a static website --- .gitattributes | 1 - ...eeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx | 3 --- caimira/scripts/data/vaccine_effectiveness.py | 8 ++++---- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 .gitattributes delete mode 100644 caimira/scripts/data/WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index ca21a586..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.xlsx filter=lfs diff=lfs merge=lfs -text diff --git a/caimira/scripts/data/WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx b/caimira/scripts/data/WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx deleted file mode 100644 index c3ff459d..00000000 --- a/caimira/scripts/data/WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aef0605c3668b4884b815f71c0eae93eaaa7b88d6b6c17ff97f6a86a38674a5 -size 76179581 diff --git a/caimira/scripts/data/vaccine_effectiveness.py b/caimira/scripts/data/vaccine_effectiveness.py index 8186da64..ee98ac00 100644 --- a/caimira/scripts/data/vaccine_effectiveness.py +++ b/caimira/scripts/data/vaccine_effectiveness.py @@ -3,12 +3,12 @@ from tabulate import tabulate ''' Script file to generate the vaccine effectiveness values. -To generate the primary vaccine effectiveness values, uncoment lines 16-21. -To generate the booster effectiveness values, uncoment lines 26-56. +To generate the primary vaccine effectiveness values, uncomment lines 16-21. +To generate the booster effectiveness values, uncomment lines 26-56. ''' # Data from 08 Sep. 2022 -file_loc = "./WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx" +file_loc = "https://caimira-resources.web.cern.ch/WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx" # ------- PRIMARY VACCINATION ------ # @@ -43,7 +43,7 @@ file_loc = "./WeeklySummary_COVID19_VE_Studies_08Sep2022_adapted.xlsx" # new_rows_with_or.at[index, 'primary series vaccine'] = row['primary series vaccine'].split(' or ')[1] # rows_to_add.loc[len(rows_indexes)+index] = new_rows_with_or.loc[index] -# # merge the dataframe without the ' or ' with the new dataframe that has the rows divided in two +# # merge the dataframe without the ' or ' with the new dataframe that has the rows divided in two # final_df = pd.concat([df_without_or, rows_to_add]).reset_index().drop(columns=['index']) # # calculate the VE value