Fix argument type.

Former-commit-id: 01b4413c9a09882b7da040bbb2eb6fb6dd0864dc
This commit is contained in:
Marek Nečada 2019-03-26 15:23:17 +02:00
parent 38bd16f94a
commit eddb8558d8
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ nm = 1e-9
if 'SLURM_CPUS_PER_TASK' in os.environ: if 'SLURM_CPUS_PER_TASK' in os.environ:
scatsystem_set_nthreads(os.environ['SLURM_CPUS_PER_TASK']) scatsystem_set_nthreads(int(os.environ['SLURM_CPUS_PER_TASK']))
rewrite_output = '--rewrite-output' in sys.argv rewrite_output = '--rewrite-output' in sys.argv

View File

@ -8,7 +8,7 @@ import sys
from pathlib import Path from pathlib import Path
if 'SLURM_CPUS_PER_TASK' in os.environ: if 'SLURM_CPUS_PER_TASK' in os.environ:
scatsystem_set_nthreads(os.environ['SLURM_CPUS_PER_TASK']) scatsystem_set_nthreads(int(os.environ['SLURM_CPUS_PER_TASK']))
nm = 1e-9 nm = 1e-9