From eddb8558d89f31d7d84fe5b71fba838109bd8b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Tue, 26 Mar 2019 15:23:17 +0200 Subject: [PATCH] Fix argument type. Former-commit-id: 01b4413c9a09882b7da040bbb2eb6fb6dd0864dc --- misc/201903_finiterectlat_AaroBEC_Mie.py | 2 +- misc/201903_finiterectlat_AaroBEC_fatMie.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/201903_finiterectlat_AaroBEC_Mie.py b/misc/201903_finiterectlat_AaroBEC_Mie.py index 3458835..5f3e899 100755 --- a/misc/201903_finiterectlat_AaroBEC_Mie.py +++ b/misc/201903_finiterectlat_AaroBEC_Mie.py @@ -10,7 +10,7 @@ nm = 1e-9 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 diff --git a/misc/201903_finiterectlat_AaroBEC_fatMie.py b/misc/201903_finiterectlat_AaroBEC_fatMie.py index 2976e35..7a0b205 100755 --- a/misc/201903_finiterectlat_AaroBEC_fatMie.py +++ b/misc/201903_finiterectlat_AaroBEC_fatMie.py @@ -8,7 +8,7 @@ import sys from pathlib import Path 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