issue_comments
19 rows where issue = 378898407 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Include filename or path in open_mfdataset · 19 ✖
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 |
I think it would be better to do this systematically, e.g., inside |
{ "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 | |
440002135 | https://github.com/pydata/xarray/issues/2550#issuecomment-440002135 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQ0MDAwMjEzNQ== | jsignell 4806877 | 2018-11-19T18:53:27Z | 2018-11-19T18:53:27Z | CONTRIBUTOR | Having started writing a test, I now think that Is this something that we want to mandate that backends provide? |
{ "total_count": 1, "+1": 1, "-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:
|
{ "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 | |
439913493 | https://github.com/pydata/xarray/issues/2550#issuecomment-439913493 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzOTkxMzQ5Mw== | jsignell 4806877 | 2018-11-19T14:36:37Z | 2018-11-19T14:36:37Z | CONTRIBUTOR | Should I add a test that expects |
{ "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 |
{ "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 | |
439742167 | https://github.com/pydata/xarray/issues/2550#issuecomment-439742167 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzOTc0MjE2Nw== | jsignell 4806877 | 2018-11-19T00:52:03Z | 2018-11-19T00:52:03Z | CONTRIBUTOR | Ah I don't think I understood that adding ```python def func(ds): var = next(var for var in ds) return ds.assign(path=ds[var].encoding['source']) ds = xr.open_mfdataset(['./air_1.nc', './air_2.nc'], concat_dim='path', preprocess=func) ``` I do think it is misleading though that after you've concatenated the data, the ```python
I'll close this one though since there is a clear way to access the filename. Thanks for the tip @jhamman! |
{ "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 | |
437464939 | https://github.com/pydata/xarray/issues/2550#issuecomment-437464939 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzQ2NDkzOQ== | dcherian 2448579 | 2018-11-09T19:14:35Z | 2018-11-09T19:14:35Z | MEMBER | True, maybe we should track down why that isn't happening with your 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 | |
437464067 | https://github.com/pydata/xarray/issues/2550#issuecomment-437464067 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzQ2NDA2Nw== | jsignell 4806877 | 2018-11-09T19:11:38Z | 2018-11-09T19:11:38Z | CONTRIBUTOR |
I thought @jhamman was suggesting that already exists, but I couldn't find it: https://github.com/pydata/xarray/issues/2550#issuecomment-437157299 |
{ "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 | |
437463476 | https://github.com/pydata/xarray/issues/2550#issuecomment-437463476 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzQ2MzQ3Ng== | dcherian 2448579 | 2018-11-09T19:09:34Z | 2018-11-09T19:09:34Z | MEMBER | A dirty fix would be to add an attribute to each 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 | |
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:
|
{ "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 | |
437433736 | https://github.com/pydata/xarray/issues/2550#issuecomment-437433736 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzQzMzczNg== | jsignell 4806877 | 2018-11-09T17:29:05Z | 2018-11-09T17:29:05Z | CONTRIBUTOR | Maybe we can inspect the ```python
This response is ordered, so the first one can always be From this answer: https://stackoverflow.com/a/4051447/4021797 |
{ "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 | |
437408363 | https://github.com/pydata/xarray/issues/2550#issuecomment-437408363 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzQwODM2Mw== | dcherian 2448579 | 2018-11-09T16:10:08Z | 2018-11-09T16:10:08Z | MEMBER | Hmm... Sorry @jsignell. I thought preprocess passed the filename too. |
{ "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 |
{ "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 | |
437243753 | https://github.com/pydata/xarray/issues/2550#issuecomment-437243753 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzI0Mzc1Mw== | jhamman 2443309 | 2018-11-09T04:08:14Z | 2018-11-09T04:08:14Z | MEMBER | @shoyer and @jsignell - I'd also be happy to see this added to the preprocess function. Ideally the function signature would look like:
This would avoid a breaking change and allow us to add additional kwargs at a later date if need be. |
{ "total_count": 1, "+1": 1, "-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 |
{ "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 | |
437161279 | https://github.com/pydata/xarray/issues/2550#issuecomment-437161279 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzE2MTI3OQ== | jsignell 4806877 | 2018-11-08T21:24:45Z | 2018-11-08T21:24:45Z | CONTRIBUTOR | @jhamman that looks pretty good, but I'm not seeing the source in the encoding dict. Is this what you were expecting? ```python def func(ds): var = next(var for var in ds) return ds.assign(path=ds[var].encoding['source']) xr.open_mfdataset(['./ST4.2018092500.01h', './ST4.2018092501.01h'],
engine='pynio', concat_dim='path', preprocess=func)
KeyError Traceback (most recent call last) <ipython-input-49-184da62ce353> in <module>() ----> 1 ds = xr.open_mfdataset(['./ST4.2018092500.01h', './ST4.2018092501.01h'], engine='pynio', concat_dim='path', preprocess=func) /opt/conda/lib/python3.6/site-packages/xarray/backends/api.py in open_mfdataset(paths, chunks, concat_dim, compat, preprocess, engine, lock, data_vars, coords, autoclose, parallel, **kwargs) 612 file_objs = [getattr_(ds, '_file_obj') for ds in datasets] 613 if preprocess is not None: --> 614 datasets = [preprocess(ds) for ds in datasets] 615 616 if parallel: /opt/conda/lib/python3.6/site-packages/xarray/backends/api.py in <listcomp>(.0) 612 file_objs = [getattr_(ds, '_file_obj') for ds in datasets] 613 if preprocess is not None: --> 614 datasets = [preprocess(ds) for ds in datasets] 615 616 if parallel: <ipython-input-48-fd450fa1393a> in func(ds) 1 def func(ds): 2 var = next(var for var in ds) ----> 3 return ds.assign(path=ds[var].encoding['source']) KeyError: 'source' ``` xarray version: '0.11.0+1.g575e97ae' |
{ "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 | |
437157299 | https://github.com/pydata/xarray/issues/2550#issuecomment-437157299 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzE1NzI5OQ== | jhamman 2443309 | 2018-11-08T21:11:08Z | 2018-11-08T21:11:08Z | MEMBER | @jsignell - perhaps not a very pretty solution but we do save the source of each variable in the encoding dictionary.
Presumably, you could unpack this via a preprocess step. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Include filename or path in open_mfdataset 378898407 | |
437156317 | https://github.com/pydata/xarray/issues/2550#issuecomment-437156317 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzE1NjMxNw== | jsignell 4806877 | 2018-11-08T21:07:48Z | 2018-11-08T21:07:48Z | CONTRIBUTOR |
Yes but the input to that function is just the ds, I couldn't figure out a way to get the filename from within a preprocess function. This is what I was doing to poke around in there: ```python def func(ds): import pdb; pdb.set_trace() xr.open_mfdataset(['./ST4.2018092500.01h', './ST4.2018092501.01h'], engine='pynio', concat_dim='path', preprocess=func) ``` |
{ "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 | |
437153461 | https://github.com/pydata/xarray/issues/2550#issuecomment-437153461 | https://api.github.com/repos/pydata/xarray/issues/2550 | MDEyOklzc3VlQ29tbWVudDQzNzE1MzQ2MQ== | dcherian 2448579 | 2018-11-08T20:58:47Z | 2018-11-08T20:58:47Z | MEMBER | There is a preprocess argument. You provide a function and it is run on every file. |
{ "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
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 4