Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Initialising NDData objects with a numpy masked array object fails if there are no masked entries #2784
If you attempt to initialise an NDData object using a numpy masked array object which happens to have no masked entries it raises an exception, e.g.
The problem is the mask setter code in nddata.py:
The 3rd line tests whether the provided mask
I think all that is required here is to replace
Confirmed in current dev version: