Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_base
-
Urgent?:No
Description
A comment in the code says that "skew returns a named tuple when called on an array with nan values." (Apparently this may have been a MaskedArray.) This has been fixed in scipy 1.9: https://github.com/scipy/scipy/issues/12548
As a result, the test fails due to trying to extract data from a float.
Please rewrite this so that it is compatible with both older and newer versions of scipy.
Attachments
Issue Links
- is triggering
-
DM-35778 DM-35777 affects older code so pin scipy in rubin-env
- Done
Checked locally that this update works on both scipy=1.8.1 and scipy=1.9.0.