home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where author_association = "CONTRIBUTOR" and issue = 456769766 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 2

  • jukent 6
  • nedclimaterisk 2

issue 1

  • Rename dims independently from coords? · 8 ✖

author_association 1

  • CONTRIBUTOR · 8 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
507392001 https://github.com/pydata/xarray/issues/3026#issuecomment-507392001 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNzM5MjAwMQ== jukent 46687291 2019-07-01T19:22:15Z 2019-07-01T19:22:15Z CONTRIBUTOR

This issue can be closed, and is addressed in pull request #3045

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
505556932 https://github.com/pydata/xarray/issues/3026#issuecomment-505556932 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNTU1NjkzMg== jukent 46687291 2019-06-25T18:04:06Z 2019-06-25T18:04:06Z CONTRIBUTOR

Created pull request #3042

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
505198712 https://github.com/pydata/xarray/issues/3026#issuecomment-505198712 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNTE5ODcxMg== jukent 46687291 2019-06-24T22:02:27Z 2019-06-24T22:02:27Z CONTRIBUTOR

I will submit a pull request to add separate rename dims and rename coords functions in a day or two.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
505179831 https://github.com/pydata/xarray/issues/3026#issuecomment-505179831 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNTE3OTgzMQ== jukent 46687291 2019-06-24T21:02:06Z 2019-06-24T21:02:06Z CONTRIBUTOR

Should we close this issue?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
504238699 https://github.com/pydata/xarray/issues/3026#issuecomment-504238699 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNDIzODY5OQ== nedclimaterisk 43126798 2019-06-20T23:51:10Z 2019-06-20T23:51:10Z CONTRIBUTOR

For example, you might have a rectilinear grid in a non-geodetic coordinate system, for example a rotated pole:

<xarray.Dataset> Dimensions: (period: 7, x: 3, y: 3) Coordinates: height float64 2.0 lon (y, x) float64 137.6 138.1 138.6 137.6 ... 137.7 138.1 138.6 lat (y, x) float64 -21.71 -21.73 -21.74 ... -20.83 -20.85 -20.86 * y (y) float64 7.92 8.36 8.8 * x (x) float64 176.5 176.9 177.4 * period (period) object '1961-1980' '1981-2000' ... '2081-2100' Data variables: loc (period, y, x) float64 311.2 311.4 311.2 ... 316.0 316.0 315.6 scale (period, y, x) float64 1.231 1.223 1.192 ... 0.8923 0.8934 shape (period, y, x) float64 0.4358 0.4261 ... -0.001062 0.009387 rotated_pole |S1 b''

Obviously this case is a little more complicated, because x/y and lon/lat don't have a one-to-one correspondence. But I want to be able to write code that works with both cases, ideally without special casing stuff. Being able to have separately named dim and coordinate variables would help a lot.

However, now that I look at this example, I guess in my case I have both x/y and lat/lon in the coordinates anyway, so maybe I should just duplicate them, with different names.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
504212802 https://github.com/pydata/xarray/issues/3026#issuecomment-504212802 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNDIxMjgwMg== jukent 46687291 2019-06-20T21:50:09Z 2019-06-20T22:10:50Z CONTRIBUTOR

import xarray as xr ds = xr.tutorial.open_dataset('air_temperature') ds.coords['y'] = ('lat',ds.lat) ds.coords['x'] = ('lon',ds.lon) ds_swappeddims = ds.swap_dims({'lat':'y','lon':'x'}) ds_swappeddims.drop(['x','y'])

Did you do something like this?/Is this what you are after but would like a cleaner solution?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
504180503 https://github.com/pydata/xarray/issues/3026#issuecomment-504180503 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwNDE4MDUwMw== jukent 46687291 2019-06-20T20:58:46Z 2019-06-20T20:58:46Z CONTRIBUTOR

I am looking into this, but first I am making sure I understand the relationship between coordinates and dimensions. Could you give me an example of when you would use this functionality?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766
502882609 https://github.com/pydata/xarray/issues/3026#issuecomment-502882609 https://api.github.com/repos/pydata/xarray/issues/3026 MDEyOklzc3VlQ29tbWVudDUwMjg4MjYwOQ== nedclimaterisk 43126798 2019-06-17T23:04:34Z 2019-06-17T23:04:34Z CONTRIBUTOR

Is there even any work-around at the moment? I could try a pull request, if I could figure it out.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rename dims independently from coords? 456769766

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 15.402ms · About: xarray-datasette