We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would expect that copy or deepcopy of np.ma.masked would give me the same object, but this doesn't appear to be the case:
np.ma.masked
In [9]: copy.deepcopy(np.ma.masked) Out[9]: masked_array(data=--, mask=True, fill_value=1e+20, dtype=float64) In [10]: copy.copy(np.ma.masked) Out[10]: masked_array(data=--, mask=True, fill_value=1e+20, dtype=float64) In [11]: type(copy.deepcopy(np.ma.masked)) Out[11]: numpy.ma.core.MaskedArray In [12]: type(np.ma.masked) Out[12]: numpy.ma.core.MaskedConstant In [13]: np.__version__ Out[13]: '1.14.2'
The text was updated successfully, but these errors were encountered:
Should be an easy fix - just implement __copy__ and __deepcopy__ on MaskedConstant
__copy__
__deepcopy__
MaskedConstant
Sorry, something went wrong.
I am newbie and would like to take a stab at it if nobody is working on it already
BUG: __copy__ and __deepcopy__ should preserve MaskedConstant (#11038)
c1fc882
Fixes #11021
No branches or pull requests
I would expect that copy or deepcopy of
np.ma.masked
would give me the same object, but this doesn't appear to be the case:The text was updated successfully, but these errors were encountered: