Skip to content

MaskedArrayFutureWarning Numpy 1.11 - does this require some cdms tweaks? #122

Closed

Description

@durack1

It seems the following error is being triggered very often:

make_masks.py:247: MaskedArrayFutureWarning: setting an item on a masked array which has a shared
mask will not copy the mask and also change the original mask array in the future.
Check the NumPy 1.11 release notes for more information.
  basinmask3[yInd,xInd] = 2 ; # Correct to Pacific

Activity

  1. doutriaux1 commented on Apr 25, 2017

    @doutriaux1
    Contributor

    it's a numpy thing.

  2. durack1 commented on Apr 25, 2017

    @durack1
    MemberAuthor

    @doutriaux1 I don't agree, the transientVariable masks are being used within software, these are inherited from numpy, and so any changes upstream will affect the functionality

  3. doutriaux1 commented on Apr 26, 2017

    @doutriaux1
    Contributor

    ok I thought your array was a numpy. @dnadeau4 can you takealook?

  4. jypeter commented on Apr 26, 2017

    @jypeter
    Member

    I agree with @durack1 that we want to be sure that the warning above will not lead to unexpected side effects. cdms handling masks correctly behind the scene without the user having to think about it is one of cdms assets.

    Beginning users are often quite clueless about masks and at best know about NaN and you have to fight with them to use clean masks rather than rely on NaN (I think NaN is a matlab thing). Teaching newcomers to use masks correctly is on the same level as teaching them that they have to use weights for spatial averages (i.e. use cdutil.averager) rather than just performing a regular average

  5. modified the milestone: 2.10 on May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions