-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
ma.masked does not have fill_value attribute #4595
Copy link
Copy link
Closed
Labels
Description
>>> 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'
Reactions are currently unavailable