Skip to content

ma.masked does not have fill_value attribute #4595

@abalkin

Description

@abalkin
>>> 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'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions