From 7bd42c22a2862d117817602b0d7c3e401b5a54ff Mon Sep 17 00:00:00 2001 From: Barbara Bertozzi Date: Fri, 22 Aug 2025 18:13:50 +0200 Subject: [PATCH] feat: add sbatch file to run via Slurm --- scripts/run_sp2xr_pipeline.sbatch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/run_sp2xr_pipeline.sbatch diff --git a/scripts/run_sp2xr_pipeline.sbatch b/scripts/run_sp2xr_pipeline.sbatch new file mode 100644 index 0000000..b2eea13 --- /dev/null +++ b/scripts/run_sp2xr_pipeline.sbatch @@ -0,0 +1,22 @@ +#!/bin/bash -l + +#SBATCH --partition=general +#SBATCH --time=5-00:00:00 +#SBATCH --output=/data/user/bertoz_b/merlin6data/SP2XR_code/logs/run%j.log +#SBATCH --error=/data/user/bertoz_b/merlin6data/SP2XR_code/logs/Error_run%j.log +#SBATCH --clusters=merlin7 +#SBATCH --nodes=1 +#SBATCH --ntasks=1 +#SBATCH --ntasks-per-node=1 +#SBATCH --cpus-per-task=1 +#SBATCH --job-name=sp2xr_nya + +mkdir -p /scratch/$SLURM_JOB_ID +export TMPDIR=/scratch/$SLURM_JOB_ID + +module use unstable +source /data/user/bertoz_b/merlin6data/SP2XR_code/.venv/bin/activate + +python -u scripts/sp2xr_pipeline.py --config /data/user/bertoz_b/merlin6data/SP2XR_code/tests/run_config.yaml + +rm -rf /scratch/$SLURM_JOB_ID