ortk95 / planetmapper

PlanetMapper: An open source Python package for visualising, navigating and mapping Solar System observations
https://planetmapper.readthedocs.io
MIT License
10 stars 1 forks source link

Fix 0.5px offset in the disc location produced by `BodyXY.centre_disc` #385

Closed ortk95 closed 1 month ago

ortk95 commented 1 month ago

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: image

Closes #384

Pull request checklist

See CONTRIBUTING.md for more details.

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9994685463

Details


Totals Coverage Status
Change from base Build 9994129195: 0.0%
Covered Lines: 3135
Relevant Lines: 3147

💛 - Coveralls