Skip to content

Commit a3fdeb3

Browse files
jo-hallpabloprf
authored andcommitted
fix None partition in farmingtools
1 parent 5185dfc commit a3fdeb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mitim_tools/misc_tools/FARMINGtools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,8 @@ def create_slurm_execution_files(
10671067
commandSBATCH.append("#SBATCH --mail-user=" + email)
10681068

10691069
# ******* Partition / Billing
1070-
commandSBATCH.append(f"#SBATCH --partition {partition}")
1070+
if partition is not None:
1071+
commandSBATCH.append(f"#SBATCH --partition {partition}")
10711072

10721073
if account is not None:
10731074
commandSBATCH.append(f"#SBATCH --account {account}")

0 commit comments

Comments
 (0)