[postprocessor] Generalize getter to points

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