Skip to content

Conversation

@jrbourbeau
Copy link
Member

@jrbourbeau jrbourbeau commented Jul 13, 2018

This PR updates the array copy method to maintain expected behavior when npartitions == 1. Closes #3751.

  • Tests added / passed
  • Passes flake8 dask

@mrocklin
Copy link
Member

+1!

@mrocklin mrocklin merged commit 9ab0e9e into dask:master Jul 14, 2018
@mrocklin
Copy link
Member

Thanks @jrbourbeau !

@jrbourbeau jrbourbeau deleted the array_copy_behavior branch July 14, 2018 14:03
"""
return Array(self.dask, self.name, self.chunks, self.dtype)
if self.npartitions == 1:
return self.map_blocks(np.copy)
Copy link

@pp-mo pp-mo Aug 3, 2018

Choose a reason for hiding this comment

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

Query: doesn't this invalidate the above "This is a no-op" comment ?

@mrocklin
Copy link
Member

mrocklin commented Aug 3, 2018 via email

@mrocklin
Copy link
Member

mrocklin commented Aug 3, 2018 via email

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