home / github / commits

Menu
  • GraphQL API
  • Search all tables

commits: 1ab02b42a597ff1796235b7c8565b4c7387f6af8

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
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 <dcherian@users.noreply.github.com> * 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 <dcherian@users.noreply.github.com> * [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 <dcherian@users.noreply.github.com> 2024-01-29T19:13:27Z 2024-01-29T19:13:27Z 650ccabbd2cac4bf2902ea2f31b41c9a1374032b cd792325681cbad9f663f2879d8b69f1edbb678f 13221727 13301940 19864447
Powered by Datasette · Queries took 0.793ms · About: xarray-datasette