-
-
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.
More informative error for passing a list to dataset.transpose (#7120)
* Added statement to check if list is passed for dims and raise a more helpful error * Fixed issue where isinstance would not work when no arguments are passed * Added test * Updated whats-new.rst * Updated whats-new.rst with pull number * Removed test print statement * Update xarray/core/dataset.py Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Fixed test to inclued whole error output and imported regex. Changed transpose join statement * Hopefully fixed typecheck error and improved readability from suggestions by @max-sixty Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
- Loading branch information
1 parent
58ab594
commit 13c52b2
Showing
3 changed files
with
24 additions
and
1 deletion.
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