Skip to content

compress: Partially handle condition as Dask array#2545

Merged
mrocklin merged 1 commit intodask:masterfrom
jakirkham:compress_wo_resize
Jul 25, 2017
Merged

compress: Partially handle condition as Dask array#2545
mrocklin merged 1 commit intodask:masterfrom
jakirkham:compress_wo_resize

Conversation

@jakirkham
Copy link
Copy Markdown
Member

@jakirkham jakirkham commented Jul 24, 2017

Works towards resolving issue ( #2540 ).

To prep for making compress a lazy function, handle the condition array argument as a Dask Array as long as possible. Unfortunately it still needs to be converted to a NumPy Array to create the needed slice to apply to the input array a. However this little rewrite should make it easier to focus on just getting that portion of code into Dask Arrays instead of NumPy Arrays.

To prep for making `compress` a lazy function, handle the `condition`
array argument as a Dask Array as long as possible. Unfortunately it
still needs to be converted to a NumPy Array to create the needed slice
to apply to the input array `a`. However this little rewrite should make
it easier to focus on just getting that portion of code into Dask Arrays
instead of NumPy Arrays.
This was referenced Jul 24, 2017
@jakirkham
Copy link
Copy Markdown
Member Author

Is this also ok @mrocklin?

@mrocklin mrocklin merged commit 96ca782 into dask:master Jul 25, 2017
@jakirkham jakirkham deleted the compress_wo_resize branch July 25, 2017 17:57
@sinhrks sinhrks added this to the 0.15.2 milestone Aug 30, 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