mpound / pdrtpy

PhotoDissociation Region Toolbox Python module
GNU General Public License v3.0
6 stars 3 forks source link

Fix for change in behavior in recent astropy #85

Closed NanoExplorer closed 1 year ago

NanoExplorer commented 1 year ago

Astropy 5.3.3 / numpy 1.24.4 triggers a strange error when CCDData is passed to np.min(). In older versions it would return a unitless number, but now it raises an exception. It is unclear what the expected behavior is, so I changed this line to pass the underlying array to numpy instead of the CCDData object. This now matches the previous line as well.

see also: https://github.com/astropy/astropy/issues/15397