diff --git a/xfel_calibrate/calibrate.py b/xfel_calibrate/calibrate.py index fdccb8b90666beef7d5703e0dd75921943889e0b..61e7a6b8b86cca8af898112618ae4c4dce9ae224 100755 --- a/xfel_calibrate/calibrate.py +++ b/xfel_calibrate/calibrate.py @@ -890,8 +890,8 @@ def run(): cluster_cores = concurrency.get("cluster cores", 8) con_func = concurrency.get("use function", None) - - if cvals is None: + # Consider [-1] as None + if cvals is None or cvals == [-1]: defcval = concurrency.get("default concurrency", None) if defcval is not None: print("Concurrency parameter '{}' is taken from notebooks.py".format(cvar))