Skip to content

np.ma.masked is not a scalar #7588

Open

Description

@eric-wieser
>>> a = np.ma.masked_array([1, 2], [0, 1])
>>> np.isscalar(a[0])
True
>>> np.isscalar(a[1])
False

This looks undesirable

Activity

  1. ahaldane commented on May 7, 2016

    @ahaldane
    Member

    Yeah, this is yet another problem with masked. See also #5806 #4660 #4332 #4595 and more I'm sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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