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.
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