Skip to content

Commit

Permalink
Add requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Sep 29, 2023
1 parent 625a5c5 commit a45e23b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/data_prep/raw_prep/prep_dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ shasum -c uk_data_service_digests.txt

# Unzip
OUTPATH=Data/dl/
unzip -o Data/dl/zip/8860tab_9C6B5888A6C880F95FC0F04CDED028191F4F1F3F865253D46D1EA277830A7D54_V1.zip -d $OUTPATH
unzip -o Data/dl/zip/8090tab_2038dabc18ee4cb41ba5d23972c3bf56.zip -d $OUTPATH
unzip -o Data/dl/zip/8737tab_249939DDF6432AA9A2ED89CECED2F92E_V1.zip -d $OUTPATH
unzip -o Data/dl/zip/8128tab_A34C0A6B082B45E8CAE4D1795D786CEEBF43FD6766C98E10DD13D81B2F586CE4_V1.zip -d $OUTPATH
unzip -o $OUTPATH/zip/8860tab_9C6B5888A6C880F95FC0F04CDED028191F4F1F3F865253D46D1EA277830A7D54_V1.zip -d $OUTPATH
unzip -o $OUTPATH/zip/8090tab_2038dabc18ee4cb41ba5d23972c3bf56.zip -d $OUTPATH
unzip -o $OUTPATH/zip/8737tab_249939DDF6432AA9A2ED89CECED2F92E_V1.zip -d $OUTPATH
unzip -o $OUTPATH/zip/8128tab_A34C0A6B082B45E8CAE4D1795D786CEEBF43FD6766C98E10DD13D81B2F586CE4_V1.zip -d $OUTPATH

# Move required files
mv $OUTPATH/UKDA-8860-tab/tab/hse_2019_eul_20211006.tab $OUTPATH
Expand All @@ -35,4 +35,5 @@ rm -r $OUTPATH/UKDA-8737-TAB
rm -r $OUTPATH/UKDA-8128-TAB

# Run OA and LSOA collection
pip install -r raw_prep/requirements.txt
python raw_prep/prep_dl.py
2 changes: 2 additions & 0 deletions scripts/data_prep/raw_prep/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
pandas

0 comments on commit a45e23b

Please sign in to comment.