forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coarsen keep attrs 3376 (pydata#3801)
* Add test of DataWithCoords.coarsen() for pydata#3376 * Add test of Variable.coarsen() for pydata#3376 * Add keep_attrs kwarg to DataWithCoords.coarsen() for pydata#3376 * Style and spelling fixes (pydata#3376) * Fix test_coarsen_keep_attrs by removing self from input * Pass keep_attrs through to _coarsen_cls and _rolling_cls returns (pydata#3376) * Move keyword from coarsen to mean in test_coarsen_keep_attrs * Start handling keep_attrs in rolling class constructors (pydata#3376) * Update Coarsen constructor and DatasetCoarsen class method (GH3376) Assign keep_attrs keyword value to Coarsen objects in constructor Add conditional inside _reduce_method.wrapped_func branching on self.keep_attrs and pass back to returned Dataset * Incorporate code review from @max-sixty * Fix Dataset.coarsen and Variable.coarsen for GH3376 Handle global keep_attrs setting inside Variable._coarsen_reshape Pass attrs through consistently inside DatasetCoarsen._reduce_method Don't pass Variable.coarsen a keyword argument it doesn't expect inside DataArrayCoarsen._reduce_method * Update tests for GH3376 * Incorporate review changes to test_dataset for GH3376 Remove commented-out test from test_coarsen_keep_attrs Add test_rolling_keep_attrs * Change Rolling._dataset_implementation for GH3376 Return a Dataset object that results in test_rolling_keep_attrs Passing * style fixes * Remove duplicate variable assignment and document change (GH3776)
- Loading branch information
Showing
6 changed files
with
165 additions
and
17 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