From aa0c077ce778fcd441001728d6b9d265104f7931 Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:27:29 -0400 Subject: [PATCH 1/2] Copy slurm_init.sh to slurm_init_longleaf.sh --- batch/{slurm_init.sh => slurm_init_longleaf.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename batch/{slurm_init.sh => slurm_init_longleaf.sh} (100%) diff --git a/batch/slurm_init.sh b/batch/slurm_init_longleaf.sh similarity index 100% rename from batch/slurm_init.sh rename to batch/slurm_init_longleaf.sh From 22cb1308d371fa7c52ac9fced6fb59327cc560db Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:28:35 -0400 Subject: [PATCH 2/2] Restore slurm_init.sh --- batch/slurm_init.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 batch/slurm_init.sh diff --git a/batch/slurm_init.sh b/batch/slurm_init.sh new file mode 100644 index 000000000..309469d4c --- /dev/null +++ b/batch/slurm_init.sh @@ -0,0 +1,42 @@ +echo ">>> running some useful commands 🤖, please wait" +module purge +module load gcc/9.3.0 +module load git +module load git-lfs +module load slurm +module load anaconda3/2022.05 +conda activate flepimop-env +export CENSUS_API_KEY="6a98b751a5a7a6fc365d14fa8e825d5785138935" # joseph's key +source /scratch4/struelo1/flepimop-code/slack_credentials.sh +# export COVID_STOCHASTIC=false +# export COVID_RESET_CHIMERICS=TRUE +# export COVID_PATH=/scratch4/struelo1/flepimop-code/$USER/COVIDScenarioPipeline + +export FLEPI_STOCHASTIC_RUN=false +export FLEPI_RESET_CHIMERICS=TRUE +export FLEPI_PATH=/scratch4/struelo1/flepimop-code/$USER/flepiMoP + +echo "done ✅" + +echo "Doing some inference_run setup, hit enter to skip a question if not relevant or you're not planning on doing a run" + +export TODAY=`date --rfc-3339='date'` +echo "Let's set up a flepiMoP run. Today is the $TODAY" + +echo "(1/3) Please input the validation date:" +read input +export VALIDATION_DATE="$input" +echo -e ">>> set VALIDATION DATE to $VALIDATION_DATE \n" + +echo "(2/3) Please input the resume location (empty if no resume, or a s3:// url or a local folder):" +read input +export RESUME_LOCATION="$input" +echo -e ">>> set RESUME_LOCATION to $RESUME_LOCATION \n" + +echo "(3/3) Please provide the Run Index for the current run:" +read input +export FLEPI_RUN_INDEX="$input" +echo -e ">>> set FLEPI_RUN_INDEX to $FLEPI_RUN_INDEX \n" + +echo "DONE. if no error please manually set export CONFIG_PATH=YOURCONFIGPATH.yml" +echo "(in case of error, override manually some variables or rerun this script)"