-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support multiple dimensions in DataArray.argmin() and DataArray.argmax() methods #3936
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
Merged
Merged
Changes from 39 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8e7fb53
DataArray.indices_min() and DataArray.indices_max() methods
johnomotani 2b06811
Update whats-new.rst and api.rst with indices_min(), indices_max()
johnomotani f6a966c
Fix type checking in DataArray._unravel_argminmax()
johnomotani 4395e7a
Fix expected results for TestReduce3D.test_indices_max()
johnomotani deee3f8
Respect global default for keep_attrs
johnomotani be8b26c
Merge behaviour of indices_min/indices_max into argmin/argmax
johnomotani 6d9d509
Basic overload of argmin() and argmax() for Dataset
johnomotani 70aaa9d
Update Variable and dask tests with _argmin_base, _argmax_base
johnomotani f8952a8
Update api-hidden.rst with _argmin_base and _argmax_base
johnomotani 8caf2b8
Explicitly defined class methods override injected methods
johnomotani 4778cfd
Move StringAccessor back to bottom of DataArray class definition
johnomotani 66cf085
Revert use of _argmin_base and _argmax_base
johnomotani c78c1fe
Move implementation of argmin, argmax from DataArray to Variable
johnomotani cb6742d
Update tests for change to coordinates on result of argmin, argmax
johnomotani ab480b5
Add 'out' keyword to argmin/argmax methods - allow numpy call signature
johnomotani dca8e45
Update and correct docstrings for argmin and argmax
johnomotani 52554b6
Correct suggested replacement for da.argmin() and da.argmax()
johnomotani ef826f6
Remove use of _injected_ methods in argmin/argmax
shoyer 8a7c7ad
Fix typo in name of argminmax_func
johnomotani e56e2e7
Mark argminmax argument to _unravel_argminmax as a string
johnomotani a99697a
Hidden internal methods don't need to appear in docs
johnomotani a785c34
Basic docstrings for Dataset.argmin() and Dataset.argmax()
johnomotani ac897d4
Set stacklevel for DeprecationWarning in argmin/argmax methods
johnomotani 752518e
Revert "Explicitly defined class methods override injected methods"
johnomotani 8b7365b
Revert "Add 'out' keyword to argmin/argmax methods - allow numpy call…
johnomotani 46b04a6
Remove argmin and argmax from ops.py
johnomotani 1ef3c97
Use self.reduce() in Dataset.argmin() and Dataset.argmax()
johnomotani 65ca2ad
Whitespace after 'title' lines in docstrings
johnomotani 1736abf
Remove tests of np.argmax() and np.argmin() functions from test_units.py
johnomotani d9b55ee
Clearer deprecation warnings in Dataset.argmin() and Dataset.argmax()
johnomotani 432dfbb
Add unravel_index to duck_array_ops, use in Variable._unravel_argminmax
johnomotani 20b448a
Filter argmin/argmax DeprecationWarnings in tests
johnomotani 95845f9
Correct test for exception for nan in test_argmax
johnomotani 0ee5146
Remove injected argmin and argmax methods from api-hidden.rst
johnomotani daa2ea5
Merge branch 'master' into indices_minmax
johnomotani d029183
flake8 fixes
johnomotani a758b0f
Tidy up argmin/argmax following code review
johnomotani 9a54e0c
Remove filters for warnings from argmin/argmax from tests
johnomotani a07ce29
Swap order of reduce_dims checks in Dataset.reduce()
johnomotani f73e10e
Merge branch 'master' into indices_minmax
keewis d77fe11
revert the changes to Dataset.reduce
keewis 308bb23
use dim instead of axis
keewis 1b53f49
use dimension instead of Ellipsis
keewis 5f80205
Make passing 'dim=...' to Dataset.argmin() or Dataset.argmax() an error
johnomotani 540c281
Better docstrings for Dataset.argmin() and Dataset.argmax()
johnomotani 4aca9d9
Update doc/whats-new.rst
johnomotani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.