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

Consider [-1] as None

parent c31d7feb
Branches feat/read_with_EXtra_data_Jungfrau
No related tags found
2 merge requests!298Feat/dss cimprove master rebasing,!288Fix: Consider [-1] as None
...@@ -890,8 +890,8 @@ def run(): ...@@ -890,8 +890,8 @@ def run():
cluster_cores = concurrency.get("cluster cores", 8) cluster_cores = concurrency.get("cluster cores", 8)
con_func = concurrency.get("use function", None) con_func = concurrency.get("use function", None)
# Consider [-1] as None
if cvals is None: if cvals is None or cvals == [-1]:
defcval = concurrency.get("default concurrency", None) defcval = concurrency.get("default concurrency", None)
if defcval is not None: if defcval is not None:
print("Concurrency parameter '{}' is taken from notebooks.py".format(cvar)) 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