Skip to content

Avoid asarray and lock arguments for from_array(getitem)#4044

Merged
jakirkham merged 2 commits intodask:masterfrom
mrocklin:from-array-getitem
Oct 3, 2018
Merged

Avoid asarray and lock arguments for from_array(getitem)#4044
jakirkham merged 2 commits intodask:masterfrom
mrocklin:from-array-getitem

Conversation

@mrocklin
Copy link
Copy Markdown
Member

@mrocklin mrocklin commented Oct 2, 2018

Fixes #4043

  • Tests added / passed
  • Passes flake8 dask

@mrocklin
Copy link
Copy Markdown
Member Author

mrocklin commented Oct 2, 2018

Merging tomorrow if there are no further comments

Copy link
Copy Markdown
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

slices = slices_from_chunks(chunks)

if not asarray or lock:
if getitem != operator.getitem and (not asarray or lock):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should probably be is not. Not a big deal though.

@jakirkham jakirkham merged commit 81ab129 into dask:master Oct 3, 2018
@jakirkham
Copy link
Copy Markdown
Member

Thanks @mrocklin :)

@pp-mo
Copy link
Copy Markdown

pp-mo commented Oct 30, 2018

Thanks (very late!) 💐
I seem to have missed this happening + only thought to check on the old issue today.

I'm possibly not getting notifies for some reason ...
Can someone maybe ping me ? Ta

@mrocklin mrocklin deleted the from-array-getitem branch January 3, 2019 17:42
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