Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology
https://pyautogalaxy.readthedocs.io/
MIT License
28 stars 14 forks source link

Feature/ellipse masking #194

Closed Jammy2211 closed 1 month ago

Jammy2211 commented 1 month ago

This pull request ensures that masking works for ellipse fitting correctly.

Previously, if a pixel evaluated for ellipse fitting computed one or more values for a neighboring pixel that was masked (and therefore has a value we distrust), it was still included in the likelihood calculation.

This PR ensures this behaviour no longer occurs and that any such pixel is omitted for all calculations.