This commit is contained in:
Noe Brucy
2023-05-05 20:09:28 +02:00
parent 037ddad596
commit 4b847064c5

View File

@@ -333,8 +333,8 @@ class Galsec:
""" """
for fluid in self.fluids: for fluid in self.fluids:
x_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_x) x_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_x)
y_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_y) y_bin = np.trunc(self.data[fluid]["position"][:, 1] / delta_y)
z_bin = np.trunc(self.data[fluid]["position"][:, 0] / delta_z) z_bin = np.trunc(self.data[fluid]["position"][:, 2] / delta_z)
self.data[fluid]["x_bin"] = x_bin self.data[fluid]["x_bin"] = x_bin
self.data[fluid]["y_bin"] = y_bin self.data[fluid]["y_bin"] = y_bin
self.data[fluid]["z_bin"] = z_bin self.data[fluid]["z_bin"] = z_bin