cosmodesi / pyrecon

package for BAO reconstruction
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

check for out-of-bounds in python rather than in C #12

Closed adematti closed 2 years ago

adematti commented 2 years ago

Checks are performed on the python side for out-of-bounds positions (only if wrap is False). On the C-side, positions are wrapped inside the box. Should avoid errors due to numerical rounding.