issues: 1874412700
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1874412700 | PR_kwDOAMm_X85ZLe24 | 8124 | More flexible index variables | 4160723 | open | 0 | 0 | 2023-08-30T21:45:12Z | 2023-08-31T16:02:20Z | MEMBER | 1 | pydata/xarray/pulls/8124 |
The goal of this PR is to provide a more general solution to indexed coordinate variables, i.e., support arbitrary dimensions and/or duck arrays for those variables while at the same time prevent them from being updated in a way that would invalidate their index. This would solve problems like the one mentioned here: https://github.com/pydata/xarray/issues/1650#issuecomment-1697237429 @shoyer I've tried to implement what you have suggested in https://github.com/pydata/xarray/pull/4979#discussion_r589798510. It would be nice indeed if eventually we could get rid of So the approach implemented in this PR is to keep using The latter solution (wrapper) doesn't always work nicely, though. For example, several methods of More generally, which operations should we allow / forbid / skip for an indexed coordinate variable?
(Note: we could add cc @andersy005 (some changes made here may conflict with what you are refactoring in #8075). |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8124/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |