From 5fcf10ba1929ec324027aa0a18a693d9b69c6eef Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Fri, 20 Oct 2023 14:48:00 +0100 Subject: [PATCH] Fix flipping --- csiborgtools/read/readsim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csiborgtools/read/readsim.py b/csiborgtools/read/readsim.py index 3d1466e..d7bc7a7 100644 --- a/csiborgtools/read/readsim.py +++ b/csiborgtools/read/readsim.py @@ -300,7 +300,7 @@ class CSiBORGReader(BaseReader): out["y"] = pos[:, 1] * h + 677.7 / 2 out["z"] = pos[:, 2] * h + 677.7 / 2 # Because of a RAMSES bug x and z are flipped. - flip_cols(out, ["x", "z"]) + flip_cols(out, "x", "z") out["totpartmass"] = totmass * 1e11 * h out["m200c"] = m200c * 1e11 * h return out @@ -359,7 +359,7 @@ class CSiBORGReader(BaseReader): out['y'] *= 677.7 out['z'] *= 677.7 # Because of a RAMSES bug x and z are flipped. - flip_cols(out, ["x", "z"]) + flip_cols(out, "x", "z") out["mass_cl"] *= 2.6543271649678946e+19 if find_ultimate_parent: