Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented Mar 7, 2018

PLEASE COMMENT, BUT DO NOT MERGE
because, apart from discussion, a test is still needed ...

Purpose:
User code often forms multiple stats, where data may be very large.
= several small, lazy, calculated results derived from same large, lazy data
Calculation scans the data, each time you realise one.
This can + should be done in parallel with da.compute(*dask_stats_arrays).
We need to assign back into Iris cube.data elements.

I can't find a neat Python idiom for this, so we can provide a simple utility routine.

Note: I'm proposing to put this in package iris itself, as I don't rate the alternatives :

  • iris._lazy_data is private
  • iris.utils, on inspection, I think is for "handy things you might just have written yourself"
    whereas : this code uses knowledge of internals.

@stickler-ci
Copy link

Could not review pull request. It may be too large, or contain no reviewable changes.

@pp-mo pp-mo reopened this Mar 7, 2018
@stickler-ci
Copy link

Could not review pull request. It may be too large, or contain no reviewable changes.

@pp-mo pp-mo merged commit 089b14f into SciTools:master Mar 7, 2018
@pelson
Copy link
Member

pelson commented Apr 11, 2018

@pp-mo - I'm somewhat concerned about this one. What happened with it? It says "merged", but there are 0 commits. It also says "Do not merge", yet it looks like it might have been merged.

Any clues? 😄

@pp-mo
Copy link
Member Author

pp-mo commented Apr 12, 2018

What happened with it? It says "merged", but there are 0 commits.

Not entirely sure of details, but I suspect that #2967 included the original commit for this, so it became redundant when that was merged.

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.

3 participants