Skip to content

Use _unstack_once for valid dask and sparse versions - #5315

Merged
max-sixty merged 26 commits into
pydata:masterfrom
Illviljan:Illviljan-faster_unstacking
May 17, 2021
Merged

Use _unstack_once for valid dask and sparse versions#5315
max-sixty merged 26 commits into
pydata:masterfrom
Illviljan:Illviljan-faster_unstacking

Conversation

@Illviljan

@IllviljanIllviljan commented May 15, 2021

Copy link
Copy Markdown
Contributor

@pep8speaks

pep8speaks commented May 15, 2021

Copy link
Copy Markdown

Hello @Illviljan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-05-17 21:56:42 UTC

@Illviljan
Illviljan marked this pull request as draft May 15, 2021 11:51
@IllviljanIllviljan changed the title Faster unstacking with dask index assignmentUse _unstack_once for valid dask and sparse versionsMay 15, 2021
Comment threadxarray/core/dataset.py Outdated
@Illviljan

Copy link
Copy Markdown
ContributorAuthor

pint doesn't seem to be playing nice still @max-sixty. Seems some of your issues from #4746 are still there? Eventhough some of the issues in #4751 seems to have been solved.

@max-sixty

Copy link
Copy Markdown
Collaborator

pint doesn't seem to be playing nice still @max-sixty. Seems some of your issues from #4746 are still there? Eventhough some of the issues in #4751 seems to have been solved.

@keewis any thoughts?

One (kinda bad) idea would be to branch on whether pint was installed — presumably if it's not installed then it can't cause the import issues. But changing dask performance based on whether pint is installed is not great!

@keewis

Copy link
Copy Markdown
Collaborator

yep, to really fix this we would have to change pint. I think it would be worth verifying whether we can check the interface (with hasattr) instead of type checking using isinstance, though.

@max-sixty

Copy link
Copy Markdown
Collaborator

yep, to really fix this we would have to change pint. I think it would be worth verifying whether we can check the interface (with hasattr) instead of type checking using isinstance, though.

Great, that could be a good workaround. What attr would we check for?

@IllviljanIllviljan reopened this May 16, 2021
@keewiskeewis closed this May 16, 2021
@keewiskeewis reopened this May 16, 2021
@Illviljan

Copy link
Copy Markdown
ContributorAuthor

@keewis any idea what it means when only 1 check has been run?

@keewis

Copy link
Copy Markdown
Collaborator

github actions currently has "degraded performance" (earlier today it was a "major outage")

Comment threadxarray/core/dataset.py
@max-sixty

Copy link
Copy Markdown
Collaborator

Looks great! Let's merge on green. Feel free to add a whatsnew @Illviljan !

@Illviljan
Illviljan marked this pull request as ready for review May 17, 2021 21:36
@IllviljanIllviljan reopened this May 17, 2021
@max-sixty

Copy link
Copy Markdown
Collaborator

Great @Illviljan ! Feel free to add a whatsnew in a different PR — this is good news for lots of dask users

@max-sixty
max-sixty merged commit 9165c26 into pydata:masterMay 17, 2021
@Illviljan
Illviljan deleted the Illviljan-faster_unstacking branch May 18, 2021 18:13
max-sixty added a commit to max-sixty/xarray that referenced this pull request May 19, 2021
max-sixty added a commit that referenced this pull request May 19, 2021
* Revert "Use _unstack_once for valid dask and sparse versions (#5315)"
This reverts commit 9165c26.
* 0.18.2 release notes
@IllviljanIllviljan mentioned this pull request Jul 5, 2021
3 tasks
TomNicholas added a commit that referenced this pull request Jul 23, 2021
* Revert "Use _unstack_once for valid dask and sparse versions (#5315)"
This reverts commit 9165c26.
* 0.18.2 release notes
* fix RTD [skip-ci] (#5518)
* v0.19.0 release notes
* Update doc/whats-new.rst [skip-ci]
* remove empty sections
Co-authored-by: Maximilian Roos <m@maxroos.com>
Co-authored-by: keewis <keewis@users.noreply.github.com>
Sign up for freeto 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

@Illviljan@pep8speaks@max-sixty@keewis