From 7297deb33a5eaa4620c5d33160c22859e55f8ea6 Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Thu, 17 Dec 2020 12:05:48 +0100 Subject: [PATCH] [postprocessor] use center of box instead for vect decomposition instead of position of star --- postprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postprocessor.py b/postprocessor.py index 680dbc1..56bd1c5 100644 --- a/postprocessor.py +++ b/postprocessor.py @@ -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):