Autostronomy / AstroPhot

A fast, flexible, automated, and differentiable astronomical image 2D forward modelling tool for precise parallel multi-wavelength photometry
https://astrophot.readthedocs.io
GNU General Public License v3.0
78 stars 9 forks source link

Nans cause some nuisance issues #158

Closed ConnorStoneAstro closed 4 months ago

ConnorStoneAstro commented 4 months ago

Describe the bug Some functions don't handle nans in the target images very well. This can cause them to crash or simply propagate the nans

To Reproduce The plotting functions generate errors with nans

Expected behavior Nans should just get automatically masked since they are quite common in a lot of applications.

ConnorStoneAstro commented 4 months ago

Closed by #160