Skip to content

Faster masked array creation in DataManager.#218

Merged
pp-mo merged 3 commits into
SciTools:masterfrom
rhattersley:fast-mask
Nov 28, 2012
Merged

Faster masked array creation in DataManager.#218
pp-mo merged 3 commits into
SciTools:masterfrom
rhattersley:fast-mask

Conversation

@rhattersley

Copy link
Copy Markdown
Member

Doing data.mask = True is surprisingly slow ... so this PR avoids it. Happy days.

(The corresponding patch to NumPy is numpy/numpy#2760.)

@pelson

pelson commented Nov 22, 2012

Copy link
Copy Markdown
Member

👍

@ghost ghost assigned pp-mo Nov 22, 2012
@bjlittle

Copy link
Copy Markdown
Member

You could also patch https://github.com/SciTools/iris/blob/master/lib/iris/_merge.py#L1153, which has the same problem.

@rhattersley

Copy link
Copy Markdown
Member Author

Thanks for the top-tip @bjlittle :-)

@rhattersley

Copy link
Copy Markdown
Member Author

Hi @pp-mo - I've tweaked things as discussed, so I think this is now good to go.

@pp-mo

pp-mo commented Nov 27, 2012

Copy link
Copy Markdown
Member

Hi @rhattersley
Looking nice !
👍

@rhattersley

Copy link
Copy Markdown
Member Author

Thanks @pp-mo - please merge when you've had time to run the merged tests.

@pp-mo

pp-mo commented Nov 28, 2012

Copy link
Copy Markdown
Member

All tested ok
-- but it needs 'mock' of course

pp-mo added a commit that referenced this pull request Nov 28, 2012
Faster masked array creation in DataManager.
@pp-mo pp-mo merged commit 683b972 into SciTools:master Nov 28, 2012
@rhattersley

Copy link
Copy Markdown
Member Author

All tested ok
-- but it needs 'mock' of course

Indeed it does. That was brought in with #210.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants