From 4b847064c5180271cdfe55c33b9006d75d24a703 Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Fri, 5 May 2023 20:09:28 +0200 Subject: [PATCH] fix --- galsec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galsec.py b/galsec.py index be54f1d..f236c6d 100644 --- a/galsec.py +++ b/galsec.py @@ -333,8 +333,8 @@ class Galsec: """ for fluid in self.fluids: x_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_x) - y_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_y) - z_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_z) + y_bin = np.trunc(self.data[fluid]["position"][:, 1] / delta_y) + z_bin = np.trunc(self.data[fluid]["position"][:, 2] / delta_z) self.data[fluid]["x_bin"] = x_bin self.data[fluid]["y_bin"] = y_bin self.data[fluid]["z_bin"] = z_bin