Repository navigation
add optional undo to dataset aligner - #200
Conversation
Pull Request Test Coverage Report for Build 19249517778Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
|
This looks really good. Ideally the init method would have a docstring explaining the purpose of the 'undo' argument. Potentially, the argument should be called something like "restore_original_dimension_ordering_on_undo" which, while verbose, is pretty easy to understand. I'm open to suggestions. The implementation looks great, thank you very much. Let's talk it through tomorrow and put the finishing touches on it then. |
|
no worries happy to rename the variable and add doc strings. Perhaps |
|
variable name changed and doc string added! |
As a follow up to #197 This adds undo functionality to the
AlignDataVariableDimensionsToDatasetCoordsclass. By default, undoing the dim alignment is turned off (restoring previous behaviour). Turn it on by passingundo=Trueat instantiation.Associated tests have been added and made use of parameterized tests to make existing tests a bit neater.