small fix slurm script

This commit is contained in:
Mayeul Aubin 2025-04-17 10:09:05 +02:00
parent 1b6f67a671
commit 01c696bfa3

View file

@ -140,7 +140,7 @@ def create_slurm_script(slurm_template:str,
raise ValueError(f"Array job range provided for job type {job}.")
if array is None and job == "scola":
raise ValueError(f"Array job range not provided for job type {job}.")
else:
elif job == "scola":
index_sub=array[0]//limit_slurm_arrays
array=(array[0]%limit_slurm_arrays, array[1]%limit_slurm_arrays)