Skip to content

Commit 5456506

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4b06eb5 commit 5456506

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

executorlib/interactive/slurm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88

99
def validate_max_workers(max_workers: int, cores: int, threads_per_core: int):
10-
cores_total = int(os.environ["SLURM_NTASKS"]) * int(os.environ["SLURM_CPUS_PER_TASK"])
10+
cores_total = int(os.environ["SLURM_NTASKS"]) * int(
11+
os.environ["SLURM_CPUS_PER_TASK"]
12+
)
1113
cores_requested = max_workers * cores * threads_per_core
1214
if cores_total < cores_requested:
1315
raise ValueError(

0 commit comments

Comments
 (0)