-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DataArray.diff dim argument should be optional as is in docstring #1040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems reasonable to me. Want to put together a PR? |
* {Dataset,DataArray}.diff dim argument defaults to last dimension * add test cases * add changelog
@smartass101 I was about to open an issue for this. Looks like you have already solved it. Wanna open a PR? |
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
this is still relevant. Should we update the docstring or the implementation? If we choose the latter we might be able to pick the commit by @smartass101 (or he might open a PR for it if he's still around?) |
I'm low confidence keener on a consistent API that doesn't depend on the number of dimensions, rather than saving a kwarg, so would vote +0.1 on retaining the implementation and changing the docstring, such that it's required to pass a dimension name even with one dimension. |
I agree. |
These days I mostly use |
The dosctring of
DataArray.diff
lists thedim
arg as optional, but it isn't. IMHO it should indeed be optional as it is quite convenient to applydiff
to 1D signals without specifying the dimension.The text was updated successfully, but these errors were encountered: