cds-astro / cds-healpix-python

cdshealpix python package
https://cds-astro.github.io/cds-healpix-python/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

fix: support nan coordinates in bilinear interpolation #21

Closed ManonMarchand closed 7 months ago

ManonMarchand commented 7 months ago

Regression coming from the Rust side where a panic exception was added resulting in failures when coordinates have a NaN (which is allowed in astropy).

We now fill the invalid values (nan and infinites) with a 0*u.deg before sending to Rust side and then apply a mask to remove these incoherent results from the output.