Corrected the implementation of center_disc so that the body's disc is actually centred in the image. Previously, there was a 0.5px offset in both the x0 and y0 coordinates, so that the disc was noticeably not centred for very small images.
Old version in red, new in black:
Closes #384
Pull request checklist
[x] Add a clear description of the change
[x] Add any new tests needed
[x] Run spell check on new text visible to user (documentation, GUI etc.)
[x] Check any changes to requirements.txt are reflected in setup.py and conda-forge feedstock
[x] Check code passes CI checks (run run_ci.sh or check GitHub Actions)
Corrected the implementation of
center_disc
so that the body's disc is actually centred in the image. Previously, there was a 0.5px offset in both thex0
andy0
coordinates, so that the disc was noticeably not centred for very small images.Old version in red, new in black:![image](https://github.com/user-attachments/assets/0e20ba1d-2ab6-4732-86f6-ff6b237f5d65)
Closes #384
Pull request checklist
requirements.txt
are reflected insetup.py
and conda-forge feedstockrun_ci.sh
or check GitHub Actions)See CONTRIBUTING.md for more details.