-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plots get labels from pint arrays (#5561)
* test labels come from pint units * values demotes pint arrays before returning * plot labels look for pint units first * pre-commit * added to_numpy() and as_numpy() methods * remove special-casing of cupy arrays in .values in favour of using .to_numpy() * .values -> .to_numpy() * lint * Fix mypy (I think?) * added Dataset.as_numpy() * improved docstrings * add what's new * add to API docs * linting * fix failures by only importing pint when needed * refactor pycompat into class * pycompat import changes applied to plotting code * what's new * compute instead of load * added tests * fixed sparse test * tests and fixes for ds.as_numpy() * fix sparse tests * fix linting * tests for Variable * test IndexVariable too * use numpy.asarray to avoid a copy * also convert coords * Force tests again after #5600 Co-authored-by: Maximilian Roos <m@maxroos.com>
- Loading branch information
1 parent
c5ee050
commit 92cb751
Showing
6 changed files
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters