[postprocessor] Generalize getter to points
This commit is contained in:
+4
-1
@@ -477,7 +477,10 @@ class PostProcessor(HDF5Container):
|
||||
"""
|
||||
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)
|
||||
return pos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user