[postprocessor] use center of box instead for vect decomposition

instead of position of star
This commit is contained in:
Noe Brucy
2020-12-17 12:05:48 +01:00
parent ccd9a8ef1e
commit 7297deb33a
+2 -2
View File
@@ -394,10 +394,10 @@ class PostProcessor(HDF5Container):
def getter_pos_disk(self, dset):
"""
Returns the position in normalized units centered on the position of the star
Returns the position in normalized and centered units
"""
pos = dset.points
pos = pos - (np.array(self.pp_params.disk.pos_star) / self.lbox)
pos = pos - np.array(self.save.root.maps._v_attrs.center)
return pos
def getter_vect_r(self, dset, name_vect):