[postprocessor] Generalize getter to points

This commit is contained in:
Noe Brucy
2021-05-06 19:15:37 +02:00
parent e817001079
commit e751dcfb92
+4 -1
View File
@@ -477,7 +477,10 @@ class PostProcessor(HDF5Container):
""" """
Returns the position in normalized and centered units Returns the position in normalized and centered units
""" """
pos = dset.points try:
pos = dset.points
except AttributeError:
pos = dset["pos"]
pos = pos - np.array(self.save.root.maps._v_attrs.center) pos = pos - np.array(self.save.root.maps._v_attrs.center)
return pos return pos