[postprocessor] Generalize getter to points
This commit is contained in:
@@ -477,7 +477,10 @@ class PostProcessor(HDF5Container):
|
|||||||
"""
|
"""
|
||||||
Returns the position in normalized and centered units
|
Returns the position in normalized and centered units
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
pos = dset.points
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user