1212# --- JOB ARRAY ---
1313# Replace '499' with your (total_runs - 1)
1414# %128 means "run 128 tasks at a time"
15- # SBATCH --array=0-499%128
15+ # SBATCH --array=0-499%128
1616
1717# Output log file:
1818# %x = job name, %A = job ID, %a = array task ID
1919# SBATCH --output=logs/%x-%A_%a.out
2020
21- # SBATCH --mail-type=BEGIN,END,FAIL
22- 21+ # # SBATCH --mail-type=BEGIN,END,FAIL
22+ 2323
2424# --- Setup ---
2525source /work/n02/n02/sdat2/.bashrc
@@ -43,7 +43,7 @@ mkdir -p $SAVE_PARENT_DIR
4343
4444# --- Job Array Logic ---
4545# 1. Create a bash array of all run directories
46- DIRS=($( find $RUN_PARENT_DIR -mindepth 1 -maxdepth 1 -type d -name " exp_* " | sort) )
46+ DIRS=($( find $RUN_PARENT_DIR -mindepth 1 -maxdepth 1 -type d | sort) )
4747
4848# 2. Check if the array is empty
4949if [ ${# DIRS[@]} -eq 0 ]; then
@@ -76,7 +76,7 @@ echo "---"
7676# OPTION 1: Run with use_dask=False (My recommendation for Lustre)
7777# The --use-dask flag is absent, so the script defaults to False.
7878echo " Running with use_dask=False"
79- python -m adforce.process_single_run \
79+ python -m adforce.process_single \
8080 --run-path $MY_RUN_DIR \
8181 --save-path $MY_SAVE_PATH
8282
0 commit comments