Skip to content

WIP: Add extract#2546

Closed
jakirkham wants to merge 4 commits intodask:masterfrom
jakirkham:add_extract
Closed

WIP: Add extract#2546
jakirkham wants to merge 4 commits intodask:masterfrom
jakirkham:add_extract

Conversation

@jakirkham
Copy link
Copy Markdown
Member

Related to issue ( #2540 ).

Implements the equivalent of NumPy's extract function for use with Dask Arrays. This is not totally lazy yet. However it should hopefully be easier to make this lazy and thus reimplement compress on top of this Dask Array extract implementation.

Implements NumPy's `extract` function for use with Dask Arrays. This is
very similar to the `compress` except that it flattens both the
condition array, `condition` and the input array, `a`, before
proceeding.
Simply compare the results of the Dask Array implementation to the NumPy
implementation.
@jakirkham
Copy link
Copy Markdown
Member Author

Was thinking it would be easier to rewrite compress using extract, but it seems that it would be easier to go the other way.

@jakirkham jakirkham changed the title Add extract WIP: Add extract Jul 25, 2017
@jakirkham
Copy link
Copy Markdown
Member Author

Replaced by PR ( #2555 ).

@jakirkham jakirkham closed this Jul 25, 2017
@jakirkham jakirkham deleted the add_extract branch July 25, 2017 18:24
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.

1 participant