Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented Feb 20, 2017

A mock replacing a PPField now behaves differently in the PPField.data call (in pp.py).
It used to have isinstance(data, biggus.Array), to which Mock replies 'False'.
Now has is_lazy_data(data), which translates to hasattr(data, 'compute'), to which Mock replies True.

It seems that np.array(mock) is ok, but np.ma.masked_array(mock) does something nasty.

@marqh
Copy link
Member

marqh commented Feb 23, 2017

@pp-mo please may you rebase/retarget this to dask_timed?

it's good to go apart from that, in my view

@pp-mo pp-mo mentioned this pull request Feb 23, 2017
@pp-mo pp-mo changed the base branch from dask to dask_timed February 24, 2017 10:56
@pp-mo pp-mo force-pushed the dask_pp_tests_fix branch from 629e9df to 7a17317 Compare February 24, 2017 12:06
@pp-mo
Copy link
Member Author

pp-mo commented Feb 24, 2017

Done. passes 😁 !

@marqh marqh merged commit 7b3e0ee into SciTools:dask_timed Feb 24, 2017
@pp-mo pp-mo deleted the dask_pp_tests_fix branch May 17, 2017 17:10
bjlittle pushed a commit to bjlittle/iris that referenced this pull request May 31, 2017
@QuLogic QuLogic modified the milestones: dask, v2.0 Aug 2, 2017
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