mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-05-20 17:41:13 +00:00
Fix flipping
This commit is contained in:
parent
b756a72251
commit
5fcf10ba19
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue