issue_comments
18 rows where issue = 787847449 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Error when supplying a tuple of dimensions to DataArray.sortby() · 18 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
860244940 | https://github.com/pydata/xarray/issues/4821#issuecomment-860244940 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg2MDI0NDk0MA== | max-sixty 5635139 | 2021-06-13T17:28:13Z | 2021-06-13T17:28:13Z | MEMBER | Yes, we want to replace that test with your test — either in the same test function or a new test function. Though it maybe it should still be a Thanks! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
860240046 | https://github.com/pydata/xarray/issues/4821#issuecomment-860240046 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg2MDI0MDA0Ng== | thomashirtz 37740986 | 2021-06-13T16:49:05Z | 2021-06-13T16:51:36Z | CONTRIBUTOR | Ok, I think I understand better now Almost finished, I just have one test that fails currently, it is this one: https://github.com/pydata/xarray/blob/e17cf595c84dffdd73c668f6d945c1b0eeba13d6/xarray/tests/test_dataset.py#L3299-L3306 The error changed from a KeyError to the error that I wrote in the constructor : ```
I am not sure what I should do with it, should I delete it ? (Thanks for your help :)) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
859802038 | https://github.com/pydata/xarray/issues/4821#issuecomment-859802038 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1OTgwMjAzOA== | keewis 14808389 | 2021-06-11T19:45:26Z | 2021-06-11T19:45:26Z | MEMBER | here's an example:
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
859736218 | https://github.com/pydata/xarray/issues/4821#issuecomment-859736218 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1OTczNjIxOA== | thomashirtz 37740986 | 2021-06-11T17:35:28Z | 2021-06-11T17:35:28Z | CONTRIBUTOR | I think I am quite confused by the fact that 'one' dimension can be a tuple (also I couldn't find a way to successfully create a dataset with a dim being a tuple, even by tweaking your example using list) Was it what you imagined for the dataset construction ? (If I understand right, a virtual variable can't be a tuple) ``` def _construct_dataarray(self, name: Hashable) -> "DataArray": """Construct a DataArray by indexing this dataset""" from .dataarray import DataArray
``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
859690070 | https://github.com/pydata/xarray/issues/4821#issuecomment-859690070 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1OTY5MDA3MA== | max-sixty 5635139 | 2021-06-11T16:14:15Z | 2021-06-11T16:14:15Z | MEMBER |
Yes!
Yes, I feel similarly. For one
How about a test that checks the example above suggests a list, rather than raising a vanilla Cheers @thomashirtz |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
859678312 | https://github.com/pydata/xarray/issues/4821#issuecomment-859678312 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1OTY3ODMxMg== | thomashirtz 37740986 | 2021-06-11T15:56:22Z | 2021-06-11T15:56:22Z | CONTRIBUTOR | You seemed to all agree on the solution 1:
If you allow explicitly tuple, doesn't it mean I need to edit this part (as mentioned by @mathause) :
But you said after :
(I find it a little bit weird to give dimensions in list, no ? I thought that generally tuples were more adapted to provide dims) Can you tell me which test-case I can implement to fulfill all the requirements needed ? I can't think of test cases that I can implement except the one suggested first, and that one passes with the first modification Also the code you mentioned is for one dim, but in this case we can have a list of dims, it does means that I need to do a 'for loop' for checking the existence of the dims, right ? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
856538266 | https://github.com/pydata/xarray/issues/4821#issuecomment-856538266 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NjUzODI2Ng== | mesejo 8579156 | 2021-06-08T07:43:43Z | 2021-06-08T07:43:43Z | CONTRIBUTOR | @thomashirtz Feel free to work on it. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
855287336 | https://github.com/pydata/xarray/issues/4821#issuecomment-855287336 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NTI4NzMzNg== | max-sixty 5635139 | 2021-06-05T19:49:24Z | 2021-06-05T19:51:19Z | MEMBER | Great, agree @dcherian . So maybe we:
- Check whether the dim exists (there could be a dim with tuple), which is already done in 1371 below
- If it doesn't exist, then check whether it's a string before passing it to
@thomashirtz changing the labels back! Thanks in advance! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
855286432 | https://github.com/pydata/xarray/issues/4821#issuecomment-855286432 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NTI4NjQzMg== | dcherian 2448579 | 2021-06-05T19:41:34Z | 2021-06-05T19:41:34Z | MEMBER | I think 2 and 3 become really confusing with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
855278196 | https://github.com/pydata/xarray/issues/4821#issuecomment-855278196 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NTI3ODE5Ng== | thomashirtz 37740986 | 2021-06-05T18:31:00Z | 2021-06-05T19:07:03Z | CONTRIBUTOR | (@max-sixty , I originally took this one because I wanted to do one more ~easy PR. I just saw you modified the tags, lmk if this one is problematic or if you know other issues I could tackle) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
855276547 | https://github.com/pydata/xarray/issues/4821#issuecomment-855276547 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NTI3NjU0Nw== | max-sixty 5635139 | 2021-06-05T18:16:38Z | 2021-06-05T18:16:38Z | MEMBER | Any thoughts from others on what we should do, of the three options above? CC @pydata/xarray |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
855201627 | https://github.com/pydata/xarray/issues/4821#issuecomment-855201627 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDg1NTIwMTYyNw== | thomashirtz 37740986 | 2021-06-05T07:54:57Z | 2021-06-05T07:54:57Z | CONTRIBUTOR | @mesejo Do you still work on it ? If not, I am interested to work on it |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
766234825 | https://github.com/pydata/xarray/issues/4821#issuecomment-766234825 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2NjIzNDgyNQ== | keewis 14808389 | 2021-01-23T23:50:40Z | 2021-01-23T23:50:53Z | MEMBER | All of these options are breaking changes so we would probably have to go through a deprecation cycle. 1 might be the most consistent and least confusing, but if we want to keep the current behavior we could require wrapping a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
766166088 | https://github.com/pydata/xarray/issues/4821#issuecomment-766166088 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2NjE2NjA4OA== | max-sixty 5635139 | 2021-01-23T19:26:54Z | 2021-01-23T19:26:54Z | MEMBER | I would propose we either:
- Explicitly allow tuples as dimension and variable names. This is probably the most mypy-compatible, since we use |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
765891555 | https://github.com/pydata/xarray/issues/4821#issuecomment-765891555 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2NTg5MTU1NQ== | mesejo 8579156 | 2021-01-23T08:55:42Z | 2021-01-23T08:55:42Z | CONTRIBUTOR | I would like to work on this |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
762710092 | https://github.com/pydata/xarray/issues/4821#issuecomment-762710092 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2MjcxMDA5Mg== | mathause 10194086 | 2021-01-19T09:17:07Z | 2021-01-19T09:17:07Z | MEMBER | Ah yes you are right... However, we are not consistent with this, e.g. that works for reductions |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
762523614 | https://github.com/pydata/xarray/issues/4821#issuecomment-762523614 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2MjUyMzYxNA== | keewis 14808389 | 2021-01-19T00:11:25Z | 2021-01-19T00:12:04Z | MEMBER | I think it's the way it is because |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 | |
762521955 | https://github.com/pydata/xarray/issues/4821#issuecomment-762521955 | https://api.github.com/repos/pydata/xarray/issues/4821 | MDEyOklzc3VlQ29tbWVudDc2MjUyMTk1NQ== | mathause 10194086 | 2021-01-19T00:04:30Z | 2021-01-19T00:04:30Z | MEMBER | Yes, I am marking that as a bug. The problem is here: as the tuple is not a list it ends up as |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Error when supplying a tuple of dimensions to DataArray.sortby() 787847449 |
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 6