mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 11:18:01 +00:00
Edit pos
This commit is contained in:
parent
9a2188348b
commit
a63b51bef1
1 changed files with 2 additions and 2 deletions
|
@ -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`.")
|
||||
|
|
Loading…
Reference in a new issue