Skip to content
Snippets Groups Projects
Commit 68b98aa8 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-244: Return a scalar if given a scalar

parent d487f383
No related branches found
No related tags found
1 merge request!56L2SS-244: Expose the SSTs in MPs
......@@ -199,7 +199,8 @@ class ProtocolAttribute:
value = numpy.array(self.node.get_value())
if self.dim_y + self.dim_x == 1:
return numpy.array([value])
# scalar
return value
elif self.dim_y != 0:
value = numpy.array(numpy.split(value, indices_or_sections=self.dim_y))
elif self.dim_y + self.dim_x == 1:
......
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