You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f7aa3f
Browse filesBrowse the repository at this point in the historyBrowse files
Extend __setitem__ to more closely match numpy (#7033)
* First implementation of extended __setitem__
* style and typo
* unite test, and fixes to make it pass. Reinstated 'where' for cases when key is Array
* test ValueErrors are raised for disallowed index combintations
* style
* Comments
* Extra tests: assignment of N-d arrays and brodacasting
* Allow assignment to np.ma.masked, and also to read-only arrays (e.g. da.empty)
* ValueError -> NotImplementedError
* numpy style docstring
Co-authored-by: Illviljan <[email protected]>
* Doc strings; value_shape1 renamed to value_common_shape
* Update message format
Co-authored-by: Illviljan <[email protected]>
* Update message format
Co-authored-by: Illviljan <[email protected]>
* test more non-valid assignments
* Style
* Style
* Prevent corruption of chunks shared between objects - allows, e.g. d[:] = d[::-1]
* Fix f-string
Co-authored-by: Illviljan <[email protected]>
* Prevent hanging when value is self - allows, e.g. d[...] = d and d[...] = d[...]
* Fix for integer-valued indices - allows, e.g. d[:, 0] = d[:, 2]
* Restructure code, catch illegal corner cases, remove premature compute
* Reorganise imports
* setitem assignment docs
* fixed labels, add to toctree
Co-authored-by: Illviljan <[email protected]>
0 commit comments