Skip to content

numpy masked array regression in 1.13.0rc1 #9121

Closed
@jswhit

Description

@jswhit

With version 1.12.1 the following script

from numpy import ma, __version__
print __version__
x = ma.array(1, mask=True)
print x[...],type(x[...])

produced

1.12.1
-- <class 'numpy.ma.core.MaskedConstant'>

With 1.13.0rc1 I get

1.13.0rc1
-- <class 'numpy.ma.core.MaskedArray'>

This means that x[...] is ma.masked returns False in 1.13, when it used to return True.

So it appears that the behaviour of scalar masked arrays has changed. This is causing test failures in netcdf4-python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions