Commit e8fa7fbd authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in PropertyMap.get_2d_array() with vector-valued maps

parent 7c536b02
......@@ -646,10 +646,10 @@ class PropertyMap(object):
if len(a) == 1:
a = a[0]
return numpy.array(a)
a = self.fa
if a is not None:
return numpy.array(a)
else:
try:
return numpy.array(self.fa)
except ValueError:
p = ungroup_vector_property(self, pos)
return numpy.array([x.a for x in p])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment