Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rechunker object has no attribute "persist" #91

Open
pmav99 opened this issue May 31, 2021 · 3 comments
Open

rechunker object has no attribute "persist" #91

pmav99 opened this issue May 31, 2021 · 3 comments

Comments

@pmav99
Copy link

pmav99 commented May 31, 2021

using 0.4.2, when trying to persist a Rechunker object on a dask cluster, an AttributeError gets raised.

E.g. when running the tutorial, cell 11 raises:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-11-d4bee8fff75b> in <module>
----> 1 future = array_plan.persist()
      2 progress(future)

AttributeError: 'Rechunked' object has no attribute 'persist'
@pmav99
Copy link
Author

pmav99 commented May 31, 2021

OK, it seems that an array_plan.plan.persist() is needed instead. I will make a PR

@rabernat
Copy link
Member

rabernat commented Jun 1, 2021

Thanks for reporting!

I'm puzzled why this API has changed.

@pmav99
Copy link
Author

pmav99 commented Jun 1, 2021

This seems to be the commit that introduced the change b6b4a52

So, should we just update the docs or you'd rather think more over it?

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

No branches or pull requests

2 participants