-
-
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.
Add rename_vars and rename_dims (#3045)
* Added rename_coords and rename_dims * Removed white space from blank lines * Changed rename_coords to rename_vars * Changed rename_coords to rename_vars in "See Also" or rename fx * Fixed renaming dimension indexing * Added testing for rename_vars and rename_dims * Testing and fx for renaming vars and dims * Met pep8 standards * Undid autopep8 for lines w noqa * Update xarray/tests/test_dataset.py Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Cleaned up helper fxs and added actual_2 test * Update xarray/core/dataset.py Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Update xarray/core/dataset.py Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * deleted misc file * Update xarray/core/dataset.py Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * _rename_var_dims_helper undefined test * Use separate rename_dims and rename_vars dictionaries * Fixed documentation and added inplace back * removing changes from rename * removed test set up to fail (will add back) * fixed coord vs variable in test rename_ * Moved rename_var to under new fx/methods * Update whats-new.rst * use pytest.raises to test for ValueError * did not assign failed * pep8 compliance
- Loading branch information
Showing
4 changed files
with
150 additions
and
37 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