Skip to content
Snippets Groups Projects
Commit 520634f4 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Merge branch 'fix/default_concurrency' into 'master'

Fix: Consider [-1] as None

See merge request detectors/pycalibration!288
parents c31d7feb b654f757
No related branches found
No related tags found
2 merge requests!298Feat/dss cimprove master rebasing,!288Fix: Consider [-1] as None
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment