sha,message,author_date,committer_date,raw_author,raw_committer,repo,author,committer 6af547cdd9beac3b18420ccb204f801603e11519,Handle .oindex and .vindex for the PandasMultiIndexingAdapter and PandasIndexingAdapter (#8869),2024-03-23T02:30:44Z,2024-03-23T02:30:44Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 84dc96136ce04d953746d9e251753ba61d0779f0,increase typing annotations coverage in `xarray/core/indexing.py` (#8857),2024-03-20T20:20:52Z,2024-03-20T20:20:52Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 79272c3dbc4748608df40290660dd7593127254f,"Implement setitem syntax for `.oindex` and `.vindex` properties (#8845) * Implement setitem syntax for `.oindex` and `.vindex` properties * Apply suggestions from code review Co-authored-by: Deepak Cherian * use getter and setter properties instead of func_get and func_set methods * delete unnecessary _indexing_array_and_key method * Add tests for IndexCallable class * fix bug/unnecessary code introduced in #8790 * add unit tests --------- Co-authored-by: Deepak Cherian ",2024-03-19T03:29:58Z,2024-03-19T03:29:58Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 c9d3084e98d38a7a9488380789a8d0acfde3256f,"Expand use of `.oindex` and `.vindex` (#8790) * refactor __getitem__() by removing vectorized and orthogonal indexing logic from it * implement explicit routing of vectorized and outer indexers * Add VectorizedIndexer and OuterIndexer to ScipyArrayWrapper's __getitem__ method * Refactor indexing in LazilyIndexedArray and LazilyVectorizedIndexedArray * Add vindex and oindex methods to StackedBytesArray * handle explicitlyindexed arrays * Refactor LazilyIndexedArray and LazilyVectorizedIndexedArray classes * Remove TODO comments in indexing.py * use indexing.explicit_indexing_adapter() in scipy backend * update docstring * fix docstring * Add _oindex_get and _vindex_get methods to NativeEndiannessArray and BoolTypeArray * Update indexing support in ScipyArrayWrapper * Update xarray/tests/test_indexing.py Co-authored-by: Deepak Cherian * Fix assert statement in test_decompose_indexers * add comments to clarifying why the else branch is needed * Add _oindex_get and _vindex_get methods to _ElementwiseFunctionArray * update whats-new * Refactor apply_indexer function in indexing.py and variable.py for code reuse * cleanup --------- Co-authored-by: Deepak Cherian Co-authored-by: Deepak Cherian ",2024-03-15T05:00:03Z,2024-03-15T05:00:03Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 9c311e841c42cc49dc88dbf87ddf6007d1a473a9,[skip-ci] Add dask-expr dependency to doc.yml (#8835),2024-03-14T21:44:14Z,2024-03-14T21:44:14Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 e47eb92a76be8e66b2ea3437a4c77e340fb62135,introduce `.vindex` property for Explicitly Indexed Arrays (#8780),2024-02-26T21:11:32Z,2024-02-26T21:11:32Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 d9760f30662b219182cdc8dedc04dfbe7771942b,"refactor `indexing.py`: introduce `.oindex` for Explicitly Indexed Arrays (#8750) Co-authored-by: Deepak Cherian Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>",2024-02-23T23:34:42Z,2024-02-23T23:34:42Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 ff0d056ec9e99dece0202d8d73c1cb8c6c20b2a1,"refactor DaskIndexingAdapter `__getitem__` method (#8758) * remove the unnecessary check for `VectorizedIndexer` * remvove test * update whats-new * update test * Trim --------- Co-authored-by: Deepak Cherian ",2024-02-15T22:44:17Z,2024-02-15T22:44:17Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 b0b5b2f4401519ef438e8a1762fadb142177a698,Fix CI: temporary pin pytest version to 7.4.* (#8682),2024-01-29T23:09:43Z,2024-01-29T23:09:43Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 1ab02b42a597ff1796235b7c8565b4c7387f6af8,"[namedarray] split `.set_dims()` into `.expand_dims()` and `broadcast_to()` (#8380) * add `.set_dims()`, `.transpose()` and `.T` to namedarray * more typying fixes * more typing fixes * override set_dims for IndexVariable * fix dims * split `.set_dims()` into `.expand_dims()` and `broadcast_to()` * more typing fixes * update whats-new * update tests * doc fixes * update whats-new * keep `.set_dims()` on `Variable()` * update docs * revert to set_dims * revert to .set_dims on Variable * Update xarray/namedarray/core.py Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * restore .transpose on variable * revert to set_dims in Variable * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix docstring * update test_namedarray * update tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Deepak Cherian * fix formatting issue * fix tests * update expand_dims * update tests * update tests * remove unnecessary guard conditions * Update type hints in NamedArray class and test cases * Refactor NamedArray T property to handle non-2D arrays * Reverse the order of dimensions in x.T * Refactor broadcasting and dimension expansion in NamedArray * update docstring * add todo item * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use comprehension * use dim * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix imports * formatting only * Apply suggestions from code review Co-authored-by: Deepak Cherian * [skip-rtd] fix indentation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor expand_dims to simplify API simplified the `expand_dims` method of the NamedArray class by removing support for multiple and keyword arguments for new dimensions. the change updates the method signature to only accept a single dimension name, enhancing clarity and maintainability. this shift focuses on the common use case of adding a single dimension and moves extended functionality to a separate API. * fix type hint for `dim` parameter in test. * fix typing issues * fix UnboundLocalError: local variable 'flattened_dims' referenced before assignment * fix type hint * ignore typing * update whats-new * adjust the `broadcast_to` method to prohibit adding new dimensions, allowing only the broadcasting of existing ones --------- Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian ",2024-01-29T19:13:27Z,2024-01-29T19:13:27Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 b9c03be14c291ff8403b9cab2ec1816dfaa2df81,fix RTD docs build (#8519),2023-12-04T21:04:46Z,2023-12-04T21:04:46Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 d44bfd7aecf155710402a8ea277ca50f9db64e3e,roll out the new/refreshed Xarray logo (#8505),2023-12-02T22:42:17Z,2023-12-02T22:42:17Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 dc0931ad05f631135baa9889bdceeb15e2fa727c,"Raise an informative error message when object array has mixed types (#4700) Co-authored-by: Mathias Hauser Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>",2023-11-28T22:19:00Z,2023-11-28T22:19:00Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 70c4ee73a7524526d58b8394d449d010720f205f,"fix `NamedArray.imag` and `NamedArray.real` typing info (#8369) Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com>",2023-10-25T19:17:53Z,2023-10-25T19:17:53Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 ccc8f9987b553809fb6a40c52fa1a8a8095c8c5f,add `.imag` and `.real` properties to `NamedArray` (#8365),2023-10-24T10:53:58Z,2023-10-24T10:53:58Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 8d54acf463b0fb29fffacd68f460e12477e4900c,"copy the `dtypes` module to the `namedarray` package. (#8250) * move dtypes module to namedarray * keep original dtypes * revert utils changes * Update xarray/namedarray/dtypes.py Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix missing imports * update typing * fix return types * type fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * type fixes --------- Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian ",2023-10-04T18:14:24Z,2023-10-04T18:14:24Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 c3b5ead8cdbce38157265fd449a2a641cc118066,"initial refactor for NamedArray (#8075) * initial prototype for NamedArray * move NDArrayMixin and NdimSizeLenMixin inside named_array * vendor is_duck_dask_array * vendor Frozen object * update import * move _default sentinel value * rename subpackage to namedarray per @TomNicholas suggestion * Remove NdimSizeLenMixin * fix typing * add annotations * Remove NDArrayMixin * Apply suggestions from code review Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * fix typing * fix return type * revert NDArrayMixin * [WIP] as_compatible_data refactor * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * duplicate sentinel value and leave the original sentinel object alone * Apply suggestions from code review Co-authored-by: Stephan Hoyer * use DuckArray * Apply suggestions from code review Co-authored-by: Stephan Hoyer * use sentinel value from xarray * remove unused code * fix variable constructor * fix as_compatible_data utility function * move _to_dense and _non_zero to NamedArray * more typing * add initial tests * Apply suggestions from code review Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * attempt to fix some mypy errors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update core.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update core.py * All input data can be arraylike * Update core.py * Update core.py * get and set attrs at the same level. * data doesn't have to be ndarray * avoid redefining typing use new variable names instead * import on runtime as well to be able to cast * requires ufunc and function to be a valid duck array * Add array_namespace * Update test_dataset.py * Update test_dataset.py * remove Frozen * update tests * update tests * switch to functional API * add fastpath * Test making sizes dict[Hashable, int] * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * A lot of errors... Try Mapping instead * Update groupby.py * Update types.py * Apply suggestions from code review Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> Co-authored-by: Deepak Cherian * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update docstrings * update error messages * update tests * test explicitly index array * update tests * remove unused types * Update xarray/tests/test_namedarray.py Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use Self --------- Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> Co-authored-by: dcherian Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Stephan Hoyer Co-authored-by: Deepak Cherian ",2023-09-27T15:23:20Z,2023-09-27T15:23:20Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 06a756c1c5f0b622189e0d1db6f9c5ef3652a30a,"add design document for ""named-array"" (#8073) * Add draft design document * add appendix * update API surface * [skip-ci] add references/links * [skip-ci] update doc * Update design_notes/xarray_lite_design_doc.md Co-authored-by: Deepak Cherian * [skip-ci] update name * [skip-ci] Update design_notes/named_array_design_doc.md Co-authored-by: Anderson Banihirwe <13301940+andersy005@users.noreply.github.com> --------- Co-authored-by: Deepak Cherian ",2023-08-17T16:22:47Z,2023-08-17T16:22:47Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447 71defdd3b500097991a5f01c5c1466b6468b4020,"Ensure dtype of reindex result matches dtype of the original DataArray (#7917) * Ensure dtype of reindex result matches dtype of the original DataArray * update what's new",2023-06-16T03:10:23Z,2023-06-16T03:10:23Z,650ccabbd2cac4bf2902ea2f31b41c9a1374032b,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,13301940,19864447