home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

20 rows where author_association = "CONTRIBUTOR" and user = 46687291 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 6

  • Rename dims independently from coords? 6
  • Added rename_coords and rename_dims 5
  • Add rename_vars and rename_dims 5
  • coarsen deletes attrs on original object 2
  • Preserve attrs with coarsen 1
  • add xarray tutorial 1

user 1

  • jukent · 20 ✖

author_association 1

  • CONTRIBUTOR · 20 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
861550921 https://github.com/pydata/xarray/pull/5457#issuecomment-861550921 https://api.github.com/repos/pydata/xarray/issues/5457 MDEyOklzc3VlQ29tbWVudDg2MTU1MDkyMQ== jukent 46687291 2021-06-15T14:31:59Z 2021-06-15T14:31:59Z CONTRIBUTOR

@dcherian @keewis I don't have permission to request reviews, but this has been open for almost a week so I wanted to nudge you.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add xarray tutorial 916710879
677939698 https://github.com/pydata/xarray/issues/4120#issuecomment-677939698 https://api.github.com/repos/pydata/xarray/issues/4120 MDEyOklzc3VlQ29tbWVudDY3NzkzOTY5OA== jukent 46687291 2020-08-20T22:32:01Z 2020-08-20T22:53:14Z CONTRIBUTOR

My doubts on this are because self._replace are used elsewhere in the code.

Changing from _replace to copy causes the tests on coarsen to fail, I am looking more into this now.


It seems that a condition of copy is that the data shapes match (variable.py line 947).

If I run ds = xr.tutorial.load_dataset("air_temperature") ds.air.coarsen(lat=5) there is no problem, but once I add a .mean() to the end ds = xr.tutorial.load_dataset("air_temperature") ds.air.coarsen(lat=5).mean()

The error is ValueError: Data shape (2920, 5, 53) must match shape of object (2920, 25, 53)

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  coarsen deletes attrs on original object 630062936
677939502 https://github.com/pydata/xarray/pull/4360#issuecomment-677939502 https://api.github.com/repos/pydata/xarray/issues/4360 MDEyOklzc3VlQ29tbWVudDY3NzkzOTUwMg== jukent 46687291 2020-08-20T22:31:19Z 2020-08-20T22:31:19Z CONTRIBUTOR

This PR passes **kwargs into _coarsen_reshape and changes _replace to copy in the fx return of coarsen.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Preserve attrs with coarsen 683115879
677926857 https://github.com/pydata/xarray/issues/4120#issuecomment-677926857 https://api.github.com/repos/pydata/xarray/issues/4120 MDEyOklzc3VlQ29tbWVudDY3NzkyNjg1Nw== jukent 46687291 2020-08-20T21:56:07Z 2020-08-20T21:59:48Z CONTRIBUTOR

@dcherian Could this be because the return of variable.py/coarsen or is it likely happening earlier in the fx?

return self._replace(data=func(reshaped, axis=axes, **kwargs))

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  coarsen deletes attrs on original object 630062936
507773567 https://github.com/pydata/xarray/pull/3045#issuecomment-507773567 https://api.github.com/repos/pydata/xarray/issues/3045 MDEyOklzc3VlQ29tbWVudDUwNzc3MzU2Nw== jukent 46687291 2019-07-02T17:30:59Z 2019-07-02T17:30:59Z CONTRIBUTOR

Added those tests for for the raised Value Error.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add rename_vars and rename_dims 460680578
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
507350527 https://github.com/pydata/xarray/pull/3045#issuecomment-507350527 https://api.github.com/repos/pydata/xarray/issues/3045 MDEyOklzc3VlQ29tbWVudDUwNzM1MDUyNw== jukent 46687291 2019-07-01T17:14:08Z 2019-07-01T17:14:08Z CONTRIBUTOR

Checks could be more complicated, but I think this is ready to merge!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add rename_vars and rename_dims 460680578
506070868 https://github.com/pydata/xarray/pull/3045#issuecomment-506070868 https://api.github.com/repos/pydata/xarray/issues/3045 MDEyOklzc3VlQ29tbWVudDUwNjA3MDg2OA== jukent 46687291 2019-06-26T22:39:31Z 2019-06-26T22:39:31Z CONTRIBUTOR

I would definitely recommend reading through our contributor's guide on how to setup a local environment for testing your code: http://xarray.pydata.org/en/stable/contributing.html

It is much easier to fix issues when you run tests locally rather than waiting on continuous integration tests (Travis-CI) to tell you that things are broken.

Thank you was just needing to look into this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add rename_vars and rename_dims 460680578
506009244 https://github.com/pydata/xarray/pull/3045#issuecomment-506009244 https://api.github.com/repos/pydata/xarray/issues/3045 MDEyOklzc3VlQ29tbWVudDUwNjAwOTI0NA== jukent 46687291 2019-06-26T19:17:14Z 2019-06-26T19:17:14Z CONTRIBUTOR

FYI tests are failing with E NameError: name '_rename_var_dims_helper' is not defined: https://travis-ci.org/pydata/xarray/jobs/550940568

Huh not sure why that is. I can remove that function and see if it works then.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add rename_vars and rename_dims 460680578
505651365 https://github.com/pydata/xarray/pull/3045#issuecomment-505651365 https://api.github.com/repos/pydata/xarray/issues/3045 MDEyOklzc3VlQ29tbWVudDUwNTY1MTM2NQ== jukent 46687291 2019-06-25T22:50:51Z 2019-06-25T22:50:51Z CONTRIBUTOR

I uninstalled the bot that automatically closed the pull request #3042

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add rename_vars and rename_dims 460680578
505611145 https://github.com/pydata/xarray/pull/3042#issuecomment-505611145 https://api.github.com/repos/pydata/xarray/issues/3042 MDEyOklzc3VlQ29tbWVudDUwNTYxMTE0NQ== jukent 46687291 2019-06-25T20:32:33Z 2019-06-25T20:32:33Z CONTRIBUTOR

@jukent check out the existing rename tests here (they're a bit over-complicated at the beginning): https://github.com/pydata/xarray/blob/master/xarray/tests/test_dataset.py#L2046-L2130

You could do something as simple as this: https://github.com/pydata/xarray/blob/master/xarray/tests/test_dataset.py#L2114-L2119 - i.e. start with a dataset, call a rename method, and compare the dataset with a manually constructed version of the expected result.

Ping back with any issues

Thanks @max-sixty. I added some very simple tests. I might copy more of the test_rename functions (if I tried to rename a variable to the same name for example)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added rename_coords and rename_dims 460562436
505599777 https://github.com/pydata/xarray/pull/3042#issuecomment-505599777 https://api.github.com/repos/pydata/xarray/issues/3042 MDEyOklzc3VlQ29tbWVudDUwNTU5OTc3Nw== jukent 46687291 2019-06-25T20:00:01Z 2019-06-25T20:00:01Z CONTRIBUTOR

3026

There is some unexpected behavior. The new rename_dims function does not change the dimensions of the variables. Working on this now.

Similarly rename_vars will rename the variable dimensions and variables, but not the dataset dimensions. I thought I was dealing with this with the _rename_indexes. But will have to keep working.

This works now! But to do so I created three different renaming variable helper functions (var name only, var and dims, var dims only). I will clean this up since the majority of these three functions is the same.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added rename_coords and rename_dims 460562436
505598969 https://github.com/pydata/xarray/pull/3042#issuecomment-505598969 https://api.github.com/repos/pydata/xarray/issues/3042 MDEyOklzc3VlQ29tbWVudDUwNTU5ODk2OQ== jukent 46687291 2019-06-25T19:57:36Z 2019-06-25T19:57:36Z CONTRIBUTOR

And tbc, we should add tests here. That will help clarify the issues above re exactly which items on the dataset each method should rename vs leave.

Yes I need to add tests, but I don't have much experience with this yet. I will ask my team here to help me.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added rename_coords and rename_dims 460562436
505587938 https://github.com/pydata/xarray/pull/3042#issuecomment-505587938 https://api.github.com/repos/pydata/xarray/issues/3042 MDEyOklzc3VlQ29tbWVudDUwNTU4NzkzOA== jukent 46687291 2019-06-25T19:26:43Z 2019-06-25T19:26:43Z CONTRIBUTOR

3026

There is some unexpected behavior. The new rename_dims function does not change the dimensions of the variables. Working on this now.

Similarly rename_vars will rename the variable dimensions and variables, but not the dataset dimensions. I thought I was dealing with this with the _rename_indexes. But will have to keep working.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added rename_coords and rename_dims 460562436
505569846 https://github.com/pydata/xarray/pull/3042#issuecomment-505569846 https://api.github.com/repos/pydata/xarray/issues/3042 MDEyOklzc3VlQ29tbWVudDUwNTU2OTg0Ng== jukent 46687291 2019-06-25T18:38:25Z 2019-06-25T18:38:25Z CONTRIBUTOR

pydata#3026

There is some unexpected behavior. The new rename_dims function does not change the dimensions of the variables. Working on this now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added rename_coords and rename_dims 460562436
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
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

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 123.785ms · About: xarray-datasette