Skip to content

Commit 73ce1d5

Browse files
committed
add data
1 parent 199d136 commit 73ce1d5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sspcloud/init-trainees.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
WORK_DIR="/home/onyxia/work"
44
GITHUB_REPOSITORY="https://github.com/InseeFrLab/AIML4OS-template-quarto-python.git"
55
NOTEBOOK_DOWNLOAD_URL="https://inseefrlab.github.io/AIML4OS-template-quarto-python/chapters/chapter1.ipynb"
6+
BUCKET_PATH="s3/donnees-insee/diffusion/ETAT_CIVIL/2020/DECES_COM_1019.csv"
7+
DEST_DIR="$HOME/work/data"
8+
DEST_FILE="$DEST_DIR/$(basename "$BUCKET_PATH")"
69

710

811
# Download the pyproject.toml directly using git
@@ -13,6 +16,10 @@ git clone --depth 1 $GITHUB_REPOSITORY temp
1316
uv pip install -r temp/pyproject.toml --system
1417
rm -rf temp
1518

19+
# Download the dataset
20+
echo "Downloading $BUCKET_PATH to $DEST_FILE..."
21+
mc cp "$BUCKET_PATH" "$DEST_DIR"
22+
1623
# Download the notebook directly using curl
1724
echo $NOTEBOOK_DOWNLOAD_URL
1825
curl -L $NOTEBOOK_DOWNLOAD_URL -o "${WORK_DIR}/exercise.ipynb"

0 commit comments

Comments
 (0)