home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

27 rows where issue = 153126324 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 6

  • ocefpaf 14
  • shoyer 9
  • kwilcox 1
  • rsignell-usgs 1
  • jhamman 1
  • fmaussion 1

author_association 3

  • CONTRIBUTOR 14
  • MEMBER 11
  • NONE 2

issue 1

  • Add a filter_by_attrs method to Dataset · 27 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
237315106 https://github.com/pydata/xarray/pull/844#issuecomment-237315106 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzMxNTEwNg== shoyer 1217238 2016-08-03T17:53:38Z 2016-08-03T17:53:38Z MEMBER

OK, in it goes. Thanks @ocefpaf !

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
237182492 https://github.com/pydata/xarray/pull/844#issuecomment-237182492 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzE4MjQ5Mg== fmaussion 10050469 2016-08-03T08:59:50Z 2016-08-03T09:00:05Z MEMBER

:+1: for filter_by_attrs , and I find it good to have such convenience functions in addition to the general ones like https://github.com/pydata/xarray/issues/916 : newcomers will find their way through xarray more easily

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
237157875 https://github.com/pydata/xarray/pull/844#issuecomment-237157875 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzE1Nzg3NQ== shoyer 1217238 2016-08-03T06:56:03Z 2016-08-03T06:56:03Z MEMBER

Anyone else have an opinion on the name? I'd like to merge this shortly before releasing v0.8.0 tomorrow.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
237033108 https://github.com/pydata/xarray/pull/844#issuecomment-237033108 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzAzMzEwOA== ocefpaf 950575 2016-08-02T20:28:25Z 2016-08-02T20:28:25Z CONTRIBUTOR

Done. Not sure why only AppVeyor started :confused:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
237008322 https://github.com/pydata/xarray/pull/844#issuecomment-237008322 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzAwODMyMg== ocefpaf 950575 2016-08-02T19:02:19Z 2016-08-02T19:02:19Z CONTRIBUTOR

Assuming we do add the filter method, maybe filter_by_attrs?

Makes sense. I will modify this soon.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
237005109 https://github.com/pydata/xarray/pull/844#issuecomment-237005109 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNzAwNTEwOQ== shoyer 1217238 2016-08-02T18:53:06Z 2016-08-02T18:53:06Z MEMBER

Assuming we do add the filter method, maybe filter_by_attrs?

It's nice to use names with the same prefix because they appear next to each other in auto-complete.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
236998182 https://github.com/pydata/xarray/pull/844#issuecomment-236998182 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNjk5ODE4Mg== ocefpaf 950575 2016-08-02T18:31:43Z 2016-08-02T18:31:43Z CONTRIBUTOR

I do think the name is a mouthful, though :).

I agree that is a mouthful but then again, I was trying to be consistent with the existing versions. However, I don't really have a strong opinion on the matter and I am fine with whatever you decide. Should I renamed then? filter_attrs? (Sounds weird though b/c you are not filtering the attrs, but the variables based on the attrs :expressionless:)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
236991775 https://github.com/pydata/xarray/pull/844#issuecomment-236991775 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNjk5MTc3NQ== shoyer 1217238 2016-08-02T18:10:54Z 2016-08-02T18:10:54Z MEMBER

I'm OK with the specialized get_variables_by_attributes. It doesn't need to be mutually exclusive with the more generic option. I do think the name is a mouthful, though :).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
236988451 https://github.com/pydata/xarray/pull/844#issuecomment-236988451 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNjk4ODQ1MQ== ocefpaf 950575 2016-08-02T18:00:19Z 2016-08-02T18:00:19Z CONTRIBUTOR

I fine with whatever you decide but here are my two cents: - get_variables_by_attributes is the same name of this method in netcd4 and some java netcdf libraries. So I'd rather not have a specialized version for attributes than adding it with name with a different name. - I see the elegance in s.filter(lambda x: x.attrs['standard_name'] == 'convective_precipitation_flux') and I like it a lot! But the specialized version for attributes is more compact to write and, at least in my field, filtering by attributes is more common making this version more convenient.

Feel free to close this if you don't think it is worth adding the specialized version. Or let me know if you want to rename it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
236986387 https://github.com/pydata/xarray/pull/844#issuecomment-236986387 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNjk4NjM4Nw== shoyer 1217238 2016-08-02T17:53:45Z 2016-08-02T17:53:45Z MEMBER

@ocefpaf Good point. It probably is indeed better to write be able to write something generic like ds.filter(lambda x: x.attrs['standard_name'] == 'convective_precipitation_flux') rather the specialized to attributes ds.get_variables_by_attributes(standard_name='convective_precipitation_flux').

Another option would be simply renaming this to filter_attrs, which is more succinct.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
235785719 https://github.com/pydata/xarray/pull/844#issuecomment-235785719 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNTc4NTcxOQ== ocefpaf 950575 2016-07-28T02:44:46Z 2016-07-28T02:44:46Z CONTRIBUTOR

Is there still an interested in this or should I close in light of https://github.com/pydata/xarray/issues/883?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
234722229 https://github.com/pydata/xarray/pull/844#issuecomment-234722229 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIzNDcyMjIyOQ== ocefpaf 950575 2016-07-23T14:53:41Z 2016-07-23T14:53:41Z CONTRIBUTOR

Agreed -- this is almost ready. Please add to the API docs (api.rst) and do the docstring fixes.

Not sure if I did this right :grimacing:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
226240288 https://github.com/pydata/xarray/pull/844#issuecomment-226240288 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIyNjI0MDI4OA== shoyer 1217238 2016-06-15T16:20:11Z 2016-06-15T16:20:11Z MEMBER

Agreed -- this is almost ready. Please add to the API docs (api.rst) and do the docstring fixes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
226080705 https://github.com/pydata/xarray/pull/844#issuecomment-226080705 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIyNjA4MDcwNQ== jhamman 2443309 2016-06-15T03:43:40Z 2016-06-15T03:43:40Z MEMBER

This looks good to me. Do we want to add this to the api page in the docs?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
225403691 https://github.com/pydata/xarray/pull/844#issuecomment-225403691 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIyNTQwMzY5MQ== ocefpaf 950575 2016-06-12T01:18:00Z 2016-06-12T01:18:00Z CONTRIBUTOR

Rebased and ready for another round of reviews :wink:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
219097316 https://github.com/pydata/xarray/pull/844#issuecomment-219097316 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxOTA5NzMxNg== ocefpaf 950575 2016-05-13T16:46:47Z 2016-05-13T17:12:02Z CONTRIBUTOR

The appveyor build failure looks unrelated to this change -- something about conda dependencies.

I am experiencing that in other projects. It is actually a bad download of miniconda, and powershell makes the error message unusable. Re-starting should fix it. (BTW miniconda is pre-installed on AppVeyor and that download is not needed.)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
219094287 https://github.com/pydata/xarray/pull/844#issuecomment-219094287 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxOTA5NDI4Nw== shoyer 1217238 2016-05-13T16:34:21Z 2016-05-13T16:34:21Z MEMBER

@ocefpaf We can squash on merge now in the web interface, so that makes things easier.

The appveyor build failure looks unrelated to this change -- something about conda dependencies.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
219061348 https://github.com/pydata/xarray/pull/844#issuecomment-219061348 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxOTA2MTM0OA== ocefpaf 950575 2016-05-13T14:36:01Z 2016-05-13T14:36:01Z CONTRIBUTOR

@jhamman and @shoyer if the tests passes this is ready for another round of review. (Let me know if I should squash the previous ones to make it easier to review.)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
218314843 https://github.com/pydata/xarray/pull/844#issuecomment-218314843 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxODMxNDg0Mw== ocefpaf 950575 2016-05-10T22:48:53Z 2016-05-10T22:48:53Z CONTRIBUTOR

@shoyer this is ready for another round of review.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217171905 https://github.com/pydata/xarray/pull/844#issuecomment-217171905 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzE3MTkwNQ== ocefpaf 950575 2016-05-05T14:40:09Z 2016-05-10T22:47:52Z CONTRIBUTOR

Well, if you guys are mostly excited about using this for coordinate variables, another consistent choice would be to return a list of matching DataArrays. But if we want to return a Dataset, we should only do data variables, because it's weird to lose all the describing coordinates when you match, e.g., standard_name="air_temperature".

We agree with you and I prefer to return a Dataset.

Right now we always go to netCDF4-python to do this low-level CF interpretation stuff. If we start using xarray for that task we should improve xarray, to take advantage of the conventions (CF/SGRID/UGRID), instead of using xarray to just find the coords data. (For example: creating the z coordinates from non-dimension coordinates and add that to the Dataset coords automatically.)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217183543 https://github.com/pydata/xarray/pull/844#issuecomment-217183543 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzE4MzU0Mw== rsignell-usgs 1872600 2016-05-05T15:19:55Z 2016-05-05T15:19:55Z NONE

It also seems consistent to me to return a Dataset.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217170260 https://github.com/pydata/xarray/pull/844#issuecomment-217170260 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzE3MDI2MA== shoyer 1217238 2016-05-05T14:33:28Z 2016-05-05T14:33:28Z MEMBER

Well, if you guys are mostly excited about using this for coordinate variables, another consistent choice would be to return a list of matching DataArrays. But if we want to return a Dataset, we should only do data variables, because it's weird to lose all the describing coordinates when you match, e.g., standard_name="air_temperature".

On Thu, May 5, 2016 at 7:05 AM, Kyle Wilcox notifications@github.com wrote:

@ocefpaf https://github.com/ocefpaf I agree that xarray model consistent should take precedence. I also use this method to (mostly) pull out coordinate variables and can continue to use netCDF4.Dataset to do that.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/pydata/xarray/pull/844#issuecomment-217163460

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217163460 https://github.com/pydata/xarray/pull/844#issuecomment-217163460 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzE2MzQ2MA== kwilcox 13939 2016-05-05T14:05:39Z 2016-05-05T14:05:56Z NONE

@ocefpaf I agree that keeping the xarray model consistent should take precedence. I also use this method to (mostly) pull out coordinate variables and can continue to use netCDF4.Dataset to do that.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217163055 https://github.com/pydata/xarray/pull/844#issuecomment-217163055 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzE2MzA1NQ== ocefpaf 950575 2016-05-05T14:03:57Z 2016-05-05T14:03:57Z CONTRIBUTOR

After discussing with my CF guru (@rsignell-usgs) and the original author of the get_variables_by_attributes (@kwilcox) I jumped the fence and I am OK leaving the xarray model pure and filtering only the data variables.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217132574 https://github.com/pydata/xarray/pull/844#issuecomment-217132574 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzEzMjU3NA== ocefpaf 950575 2016-05-05T11:41:19Z 2016-05-05T11:41:19Z CONTRIBUTOR

should this filter both data variables and coordinates or only data variables?

I thought a little bit more about this and now I am on the fence. The pros of filtering only data variables are a nice and clean Dataset object, and overall consistency with the high level xarray model. The cons are that we cannot do the filtering on the coords (obviously), but most of the time that we need to do that we go to a lower level object like netCDF4.Dataset. However, it would be nice if both xarray and netCDF4 behaved the same way...

I am 51% with filtering both (and the current implementation does that) but I will leave the final decision to you.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217129119 https://github.com/pydata/xarray/pull/844#issuecomment-217129119 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzEyOTExOQ== ocefpaf 950575 2016-05-05T11:29:01Z 2016-05-05T11:29:01Z CONTRIBUTOR

An important design question: should this filter both data variables and coordinates or only data variables? My thought is that it's only worth filtering data variables -- filtering out unmatched coordinates is not very useful.

I understand that returning coordinates without a data variable associated to them seems weird to the high level model of xarray.Dataset , but I disagree that it is not very useful. In fact that is the most common operation I do: find coordinates based on axis, formula_terms, etc and construct common grids for plotting and/or building the z coords from non-dimension coords.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324
217043510 https://github.com/pydata/xarray/pull/844#issuecomment-217043510 https://api.github.com/repos/pydata/xarray/issues/844 MDEyOklzc3VlQ29tbWVudDIxNzA0MzUxMA== shoyer 1217238 2016-05-05T00:05:11Z 2016-05-05T00:05:11Z MEMBER

An important design question: should this filter both data variables and coordinates or only data variables? My thought is that it's only worth filtering data variables -- filtering out unmatched coordinates is not very useful.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add a filter_by_attrs method to Dataset 153126324

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