home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where author_association = "MEMBER", issue = 378898407 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date)

user 1

  • shoyer · 6 ✖

issue 1

  • Include filename or path in open_mfdataset · 6 ✖

author_association 1

  • MEMBER · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
440009447 https://github.com/pydata/xarray/issues/2550#issuecomment-440009447 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQ0MDAwOTQ0Nw== shoyer 1217238 2018-11-19T19:16:48Z 2018-11-19T19:16:48Z MEMBER

Is this something that we want to mandate that backends provide?

I think it would be better to do this systematically, e.g., inside xarray.open_dataset(). We would need to verify that filename_or_obj is provided as a string, but if so we could add it into encoding on the Dataset object.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407
439961292 https://github.com/pydata/xarray/issues/2550#issuecomment-439961292 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQzOTk2MTI5Mg== shoyer 1217238 2018-11-19T16:47:50Z 2018-11-19T16:47:50Z MEMBER

Yes, that sounds great! Potentially this would be a good opportunity for a doc update, too.

On Mon, Nov 19, 2018 at 6:36 AM Julia Signell notifications@github.com wrote:

Should I add a test that expects .encoding['source'] to ensure its continued presence?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/2550#issuecomment-439913493, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1tyOrzPg3dUX2cPolk51Uoa4i7j5ks5uwsH2gaJpZM4YVZ1J .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407
439770613 https://github.com/pydata/xarray/issues/2550#issuecomment-439770613 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQzOTc3MDYxMw== shoyer 1217238 2018-11-19T04:47:13Z 2018-11-19T04:47:13Z MEMBER

I'm not sure .encoding['source'] should really be relied upon -- it wasn't really an intentional API decision. But I guess it's harmless enough to include it...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407
437458789 https://github.com/pydata/xarray/issues/2550#issuecomment-437458789 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQzNzQ1ODc4OQ== shoyer 1217238 2018-11-09T18:53:00Z 2018-11-09T18:53:00Z MEMBER

The danger with inspecting user provided functions is that it's pretty fragile, e.g., it fails if you use provide a signature like args, *kwargs (which can happen pretty easily with decorators). Probably the best option is to come up with a new keyword argument to replace "preprocess" and to deprecate the current preprocess (if we can think of another good name). We could also do a deprecation cycle with FutureWarning, but that's pretty painful.

On Fri, Nov 9, 2018 at 12:29 PM Julia Signell notifications@github.com wrote:

Maybe we can inspect the preprocess function like this:

preprocess = lambda a, b: print(a, b)>>> preprocess .code.co_varnames ('a', 'b')

This response is ordered, so the first one can always be ds regardless of its name and then we can look for special names (like filename) in the rest.

From this answer: https://stackoverflow.com/a/4051447/4021797

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/2550#issuecomment-437433736, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1kvSMx83hACWxXD3tOyIHGqyqum8ks5utbtigaJpZM4YVZ1J .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407
437394231 https://github.com/pydata/xarray/issues/2550#issuecomment-437394231 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQzNzM5NDIzMQ== shoyer 1217238 2018-11-09T15:28:40Z 2018-11-09T15:28:40Z MEMBER

@jhamman The problem is that xarray needs way to figure out what arguments it can safely pass to preprocess, i.e., it needs to inspect the proprocess function and see if it can handle a filename argument. It's not obvious what the best way to do this in a backwards compatible way is...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407
437173740 https://github.com/pydata/xarray/issues/2550#issuecomment-437173740 https://api.github.com/repos/pydata/xarray/issues/2550 MDEyOklzc3VlQ29tbWVudDQzNzE3Mzc0MA== shoyer 1217238 2018-11-08T22:08:06Z 2018-11-08T22:08:06Z MEMBER

Hmm. It really seems like the preprocess function should pass in the file-name along with the dataset.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include filename or path in open_mfdataset 378898407

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