radio-astro-tools / spectral-cube

Library for reading and analyzing astrophysical spectral data cubes
http://spectral-cube.rtfd.org
BSD 3-Clause "New" or "Revised" License
95 stars 61 forks source link

Fix issue 819: allow comparison to unitless scalar numbers #820

Closed keflavich closed 2 years ago

keflavich commented 2 years ago

Bugfix for #819. Unitless cubes (those with dimensionless_unscaled units) should be comparable to numbers and arrays directly.

keflavich commented 2 years ago

New unassociated error: https://github.com/radio-astro-tools/spectral-cube/runs/6832968047?check_suite_focus=true#step:5:261 Looks like the windows version lost accuracy? I'll open a separate issue about this.