issue_comments
12 rows where author_association = "MEMBER", issue = 819062172 and user = 4160723 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Flexible indexes refactoring notes · 12 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
801236829 | https://github.com/pydata/xarray/pull/4979#issuecomment-801236829 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDgwMTIzNjgyOQ== | benbovy 4160723 | 2021-03-17T16:42:40Z | 2021-03-17T16:42:40Z | MEMBER |
Yes! I wanted to wait for the bi-weekly dev meeting but I've just missed it (PST/PDT -> :facepalm: -> sorry). Let's merge this and continue the discussion in follow-up issues/PRs. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
796599469 | https://github.com/pydata/xarray/pull/4979#issuecomment-796599469 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc5NjU5OTQ2OQ== | benbovy 4160723 | 2021-03-11T09:30:43Z | 2021-03-11T09:30:43Z | MEMBER | Thanks for your reviews @shoyer and @rabernat! I've updated the notes according to your comments. From my point of view this is ready, but we can leave this PR open for another few days in case anyone else wants to add some comments (@pydata/xarray). Next week I'll start with the implementation (I'll take on the open PR in https://github.com/pydata/xarray/projects/1 and will do only internal refactoring making sure that all tests are passing). |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
792653797 | https://github.com/pydata/xarray/pull/4979#issuecomment-792653797 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc5MjY1Mzc5Nw== | benbovy 4160723 | 2021-03-08T10:24:56Z | 2021-03-08T10:35:01Z | MEMBER | Thanks everyone for your comments so far!! They have been really helpful in improving the notes! This is now ready for another round of review. I've tried to include all the points raised in the discussion above. I also marked all the conversations as resolved even though it's still open for discussion! (it's just a way to "reset" them for more clarity). I'll move the notes into a With the last commits, I think that the notes now cover most of the aspects regarding the use of indexes in Xarray. The goal with these notes is not to settle every detail of the refactoring (decisions can be made while iterating on the implementation), but rather describe the big picture and outline the main opportunities and challenges. Referring to the notes will help throughout the implementation. Hopefully it will allow more Xarray users and devs sharing their point of views to make sure we're not missing anything important here. One thing that is not in the notes: to which acceptable extent this refactoring may introduce breaking changes? I think that it will be hard to avoid any breaking change. That said, as the index refactoring would rather bring internal data structures to the light I don't expect many things to break (at least, not the things that 90% of Xarray users often rely on). Hardest part will probably be to ensure a smooth transition while updating the API that is too specific to |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
791255540 | https://github.com/pydata/xarray/pull/4979#issuecomment-791255540 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc5MTI1NTU0MA== | benbovy 4160723 | 2021-03-05T08:32:05Z | 2021-03-05T08:32:05Z | MEMBER |
That's good to know, thanks! Like it may create specific indexes for time coordinates, I could imagine Xarray's |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
790961332 | https://github.com/pydata/xarray/pull/4979#issuecomment-790961332 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc5MDk2MTMzMg== | benbovy 4160723 | 2021-03-04T21:36:38Z | 2021-03-04T21:36:38Z | MEMBER | Ah yes, making it more easily reusable would be welcome indeed. I guess that such lazy arrays will be already needed for the creation of coordinates from the levels of an existing |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
790716187 | https://github.com/pydata/xarray/pull/4979#issuecomment-790716187 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc5MDcxNjE4Nw== | benbovy 4160723 | 2021-03-04T15:49:51Z | 2021-03-04T15:51:53Z | MEMBER |
@rabernat @jbusecke (xgcm) @snowman2 @fmaussion @djhoese (crs) it would be interesting to have your thoughts here. What would be the pros and cons of:
A major advantage is that using a custom index, there's no need to encapsulate a Dataset/DataArray into a higher level structure (e.g., Are there any other challenges and/or opportunities? (sorry, it has probably been already discussed elsewhere. There's too many places to look for :-) ). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
789910371 | https://github.com/pydata/xarray/pull/4979#issuecomment-789910371 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4OTkxMDM3MQ== | benbovy 4160723 | 2021-03-03T17:29:36Z | 2021-03-03T17:29:36Z | MEMBER |
Thanks @dcherian for listing those methods here, that's something worth to keep in mind! I think that for now it would be reasonable to restrict those methods to the indexes that are currently available in Xarray instead of trying to extend the API of Xarray index wrappers in order to support those special cases. I guess it's ok for "default" or "common" xarray indexes to provide extra functionality that could not be implemented in 3rd party indexes, as well as it would be ok for 3rd-party indexes to provide non-standard, extra functionality that would be reused for methods implemented in DataArray/Dataset accessors.
Are the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
789737571 | https://github.com/pydata/xarray/pull/4979#issuecomment-789737571 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4OTczNzU3MQ== | benbovy 4160723 | 2021-03-03T14:05:19Z | 2021-03-03T14:17:19Z | MEMBER | Alignment hasn't been discussed yet here, but it should! Some quick thoughts:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
789549939 | https://github.com/pydata/xarray/pull/4979#issuecomment-789549939 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4OTU0OTkzOQ== | benbovy 4160723 | 2021-03-03T08:54:33Z | 2021-03-03T08:54:33Z | MEMBER |
I think #2233 will be addressed by the index refactoring here. I don't see any issue with multidimensional coordinates having the same name as one of their dimensions once indexes are decoupled from dimensions/coordinates. I might still be missing something, though. |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
789547340 | https://github.com/pydata/xarray/pull/4979#issuecomment-789547340 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4OTU0NzM0MA== | benbovy 4160723 | 2021-03-03T08:50:11Z | 2021-03-03T08:50:11Z | MEMBER |
Or similarly to ```python class MyDuckArray: ...
``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
788870926 | https://github.com/pydata/xarray/pull/4979#issuecomment-788870926 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4ODg3MDkyNg== | benbovy 4160723 | 2021-03-02T12:23:41Z | 2021-03-02T12:23:41Z | MEMBER |
I haven't looked much at If you are referring to the issue that you describe in your comment https://github.com/pydata/xarray/issues/525#issuecomment-514805244, the refactoring should decouple indexes from the coordinates, leaving the latter "just" as if they were regular variables (thus with duckarray support). What is currently possible with non-index coordinates should be possible with all coordinates. Actually, I'm not sure that we'll need to keep Or maybe you're referring to unit-aware indexing (what @shoyer mentioned in https://github.com/pydata/xarray/issues/525#issuecomment-514880353)? In this case I'm not sure how we could do that without having specific index classes for that purpose. Maybe some pre/post indexing hooks in Xarray that could be used, e.g., to convert indexer units into the coordinate units? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 | |
788702853 | https://github.com/pydata/xarray/pull/4979#issuecomment-788702853 | https://api.github.com/repos/pydata/xarray/issues/4979 | MDEyOklzc3VlQ29tbWVudDc4ODcwMjg1Mw== | benbovy 4160723 | 2021-03-02T08:01:19Z | 2021-03-02T08:01:19Z | MEMBER | Thanks for your comments @keewis and @shoyer! I think it's better for now to keep having this discussion and these notes in the Xarray repository, for more visibility. We could still move this elsewhere later if this PR becomes too cluttered, as there are potentially many aspects we can discuss about. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Flexible indexes refactoring notes 819062172 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1