This commit is contained in:
rstiskalek 2023-09-05 14:14:28 +01:00
parent 9a2188348b
commit a63b51bef1

View file

@ -79,10 +79,10 @@ def extract_positions(nsim, paths, kind):
load_initial=False, observer_velocity=vpec_observer, )
if kind == "halos":
return cat.position() - 677.7 / 2
return cat.position()
if kind == "halos_rsp":
return cat.redshift_space_position() - 677.7 / 2
return cat.redshift_space_position()
raise ValueError(f"Unknown kind `{kind}`. Allowed values are: "
"`particles`, `particles_rsp`, `halos`, `halos_rsp`.")