You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ma.masked does not have fill_value attribute #4595
>>> np.ma.masked.fill_value
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "numpy/ma/core.py", line 3353, in get_fill_value
if self._fill_value is None:
AttributeError: 'MaskedConstant' object has no attribute '_fill_value'
and as a consequence
>>> np.ma.masked.filled()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "numpy/ma/core.py", line 3442, in filled
fill_value = self.fill_value
File "numpy/ma/core.py", line 3353, in get_fill_value
if self._fill_value is None:
AttributeError: 'MaskedConstant' object has no attribute '_fill_value'
Activity
keltonhalbert commentedon May 21, 2014
I'm having a similar problem when passing masked values through to functions.
twiecki commentedon Oct 23, 2015
Just ran into the same issue.
eric-wieser commentedon Sep 27, 2017
This is fixed in 1.14-dev, and perhaps earlier: