Skip to content
Snippets Groups Projects
Commit 57909f28 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

handle scalar numpy value in conditions

parent 084a7c24
No related branches found
No related tags found
1 merge request!40Execute graph io
......@@ -111,6 +111,9 @@ class DecodeRouterActor(RouterActor):
value = value[self.itemName]
else:
return CONDITIONS_ELSE_VALUE
if isinstance(value, numpy.ndarray):
value = value.item()
if value in self.dictValues:
return value
else:
......
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