home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

27 rows where user = 4711805 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 12

  • Appending to zarr store 16
  • Empty plot with pcolormesh in the notebook 1
  • DataArray concat with tolerance 1
  • Appending to zarr with string dtype 1
  • Auto-generated API documentation 1
  • Interpolation doesn't apply on time coordinate 1
  • Append to zarr redundant with mode='a' 1
  • to_zarr(append_dim='dim0') doesn't need mode='a' 1
  • Add xarray-leaflet to the visualization projects 1
  • Feature Request: Hierarchical storage and processing in xarray 1
  • xarray.where() drops attributes 1
  • module 'xarray.core' has no attribute 'rolling' 1

user 1

  • davidbrochart · 27 ✖

author_association 1

  • CONTRIBUTOR 27
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1197827164 https://github.com/pydata/xarray/issues/6844#issuecomment-1197827164 https://api.github.com/repos/pydata/xarray/issues/6844 IC_kwDOAMm_X85HZWRc davidbrochart 4711805 2022-07-28T08:26:12Z 2022-07-28T08:26:12Z CONTRIBUTOR

Thanks @keewis !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  module 'xarray.core' has no attribute 'rolling' 1320562401
756012443 https://github.com/pydata/xarray/issues/4118#issuecomment-756012443 https://api.github.com/repos/pydata/xarray/issues/4118 MDEyOklzc3VlQ29tbWVudDc1NjAxMjQ0Mw== davidbrochart 4711805 2021-01-07T09:56:34Z 2021-01-07T09:56:34Z CONTRIBUTOR

a. For example, our friends over at Arviz have a InferenceData structure composed of multiple Datasets that is represented on-disk using NetCDF groups: https://arviz-devs.github.io/arviz/notebooks/XarrayforArviZ.html

Just a note that this link has moved to: https://arviz-devs.github.io/arviz/getting_started/XarrayforArviZ.html

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature Request: Hierarchical storage and processing in xarray 628719058
642565441 https://github.com/pydata/xarray/issues/4141#issuecomment-642565441 https://api.github.com/repos/pydata/xarray/issues/4141 MDEyOklzc3VlQ29tbWVudDY0MjU2NTQ0MQ== davidbrochart 4711805 2020-06-11T10:45:58Z 2020-06-11T10:45:58Z CONTRIBUTOR

Thanks a lot @keewis !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray.where() drops attributes 636480145
626926997 https://github.com/pydata/xarray/pull/4051#issuecomment-626926997 https://api.github.com/repos/pydata/xarray/issues/4051 MDEyOklzc3VlQ29tbWVudDYyNjkyNjk5Nw== davidbrochart 4711805 2020-05-11T20:01:30Z 2020-05-11T20:01:30Z CONTRIBUTOR

@benbovy it's this comment of yours that convinced me it was a good idea, so thank you!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add xarray-leaflet to the visualization projects 615837634
516043631 https://github.com/pydata/xarray/pull/3123#issuecomment-516043631 https://api.github.com/repos/pydata/xarray/issues/3123 MDEyOklzc3VlQ29tbWVudDUxNjA0MzYzMQ== davidbrochart 4711805 2019-07-29T15:36:37Z 2019-07-29T15:36:37Z CONTRIBUTOR

@shoyer do you think this PR can be merged?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_zarr(append_dim='dim0') doesn't need mode='a' 467805570
511181877 https://github.com/pydata/xarray/issues/3100#issuecomment-511181877 https://api.github.com/repos/pydata/xarray/issues/3100 MDEyOklzc3VlQ29tbWVudDUxMTE4MTg3Nw== davidbrochart 4711805 2019-07-14T07:56:37Z 2019-07-14T07:56:37Z CONTRIBUTOR

@shikharsg, @jendrikjoe and @rabernat might be interested too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Append to zarr redundant with mode='a' 467338176
511128911 https://github.com/pydata/xarray/issues/3099#issuecomment-511128911 https://api.github.com/repos/pydata/xarray/issues/3099 MDEyOklzc3VlQ29tbWVudDUxMTEyODkxMQ== davidbrochart 4711805 2019-07-13T15:05:29Z 2019-07-13T15:05:29Z CONTRIBUTOR

I guess it's not a bug but just the normal behavior, since da.time is a DataArray, and: python In [4]: da.time - np.timedelta64(1, 'D') Out[4]: <xarray.DataArray 'time' (time: 2)> array(['1999-12-31T00:00:00.000000000', '2000-01-01T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 2000-01-01 2000-01-02

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Interpolation doesn't apply on time coordinate 467267153
508235750 https://github.com/pydata/xarray/issues/3078#issuecomment-508235750 https://api.github.com/repos/pydata/xarray/issues/3078 MDEyOklzc3VlQ29tbWVudDUwODIzNTc1MA== davidbrochart 4711805 2019-07-03T20:02:11Z 2019-07-03T20:02:11Z CONTRIBUTOR

Thanks.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Auto-generated API documentation 463928027
504184558 https://github.com/pydata/xarray/pull/2706#issuecomment-504184558 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDUwNDE4NDU1OA== davidbrochart 4711805 2019-06-20T21:11:57Z 2019-06-20T21:11:57Z CONTRIBUTOR

You're right @shikharsg, the chunk_dim argument can be removed. I was not very happy with the complexity it brought as well.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
498199759 https://github.com/pydata/xarray/pull/2706#issuecomment-498199759 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ5ODE5OTc1OQ== davidbrochart 4711805 2019-06-03T10:19:15Z 2019-06-03T10:19:15Z CONTRIBUTOR

It would be great if you could fix it. @jendrikjoe can give you the permission to push to the branch in his fork.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
498166896 https://github.com/pydata/xarray/pull/2706#issuecomment-498166896 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ5ODE2Njg5Ng== davidbrochart 4711805 2019-06-03T08:41:01Z 2019-06-03T08:41:01Z CONTRIBUTOR

Thanks @shikharsg for looking into that. This PR and master have diverged quite a bit, I will need to merge the changes, I will let you know.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
494340006 https://github.com/pydata/xarray/pull/2706#issuecomment-494340006 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ5NDM0MDAwNg== davidbrochart 4711805 2019-05-21T10:46:20Z 2019-05-21T10:46:20Z CONTRIBUTOR

No problem @rabernat, and thanks a lot for your time in reviewing this PR.

I added a test for chunk_dim. Please let me know if this is clearer, and if I should explain further in the docs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
485340727 https://github.com/pydata/xarray/pull/2706#issuecomment-485340727 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ4NTM0MDcyNw== davidbrochart 4711805 2019-04-22T06:38:04Z 2019-04-22T06:38:04Z CONTRIBUTOR

I added a chunk_dim parameter which allows to rechunk the appended coordinate. I think it is ready for a final review now.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
484551274 https://github.com/pydata/xarray/pull/2706#issuecomment-484551274 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ4NDU1MTI3NA== davidbrochart 4711805 2019-04-18T15:14:24Z 2019-04-18T15:14:24Z CONTRIBUTOR

I don't think it's ready yet. I think I should address the chunking issue of the appended dimension, as explained in https://medium.com/pangeo/continuously-extending-zarr-datasets-c54fbad3967d. For instance if we append along a time dimension, the time coordinate (which is a 1-D array) will have very small chunks, instead of maybe only one.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
479932785 https://github.com/pydata/xarray/pull/2706#issuecomment-479932785 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3OTkzMjc4NQ== davidbrochart 4711805 2019-04-04T14:57:45Z 2019-04-04T14:57:45Z CONTRIBUTOR

@rabernat you're right, I took your suggestion into account in my last commit. I also rewrote the test.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
479800472 https://github.com/pydata/xarray/pull/2706#issuecomment-479800472 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3OTgwMDQ3Mg== davidbrochart 4711805 2019-04-04T08:24:01Z 2019-04-04T08:24:01Z CONTRIBUTOR

Thanks @jendrikjoe, I just pushed to your fork: to make sure that the encoding of the appended variables is compatible with the target store, we explicitly put the target store encodings in the appended variable.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
479788744 https://github.com/pydata/xarray/pull/2706#issuecomment-479788744 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3OTc4ODc0NA== davidbrochart 4711805 2019-04-04T07:46:52Z 2019-04-04T07:46:52Z CONTRIBUTOR

Or should I open a new PR?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
479480023 https://github.com/pydata/xarray/pull/2706#issuecomment-479480023 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3OTQ4MDAyMw== davidbrochart 4711805 2019-04-03T13:04:24Z 2019-04-03T13:04:24Z CONTRIBUTOR

@jendrikjoe I think you need to give me the permission to push to the branch in your fork.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
478365516 https://github.com/pydata/xarray/pull/2706#issuecomment-478365516 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3ODM2NTUxNg== davidbrochart 4711805 2019-03-31T18:22:53Z 2019-03-31T18:22:53Z CONTRIBUTOR

May I try and take this work over?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
475558223 https://github.com/pydata/xarray/pull/2706#issuecomment-475558223 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ3NTU1ODIyMw== davidbrochart 4711805 2019-03-22T09:53:43Z 2019-03-22T09:53:43Z CONTRIBUTOR

Hi @jendrikjoe, do you plan to work on this PR again in the future? I think it would be a great contribution to xarray.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
467551453 https://github.com/pydata/xarray/issues/2789#issuecomment-467551453 https://api.github.com/repos/pydata/xarray/issues/2789 MDEyOklzc3VlQ29tbWVudDQ2NzU1MTQ1Mw== davidbrochart 4711805 2019-02-26T18:16:12Z 2019-02-26T18:17:26Z CONTRIBUTOR

An example involving only zarr (not xarray):

```python import zarr import numpy as np

z1 = zarr.open('a.zarr', mode='w', shape=(1), chunks=(1), dtype='U6') z1[:] = 'foo'

z2 = zarr.open('a.zarr', mode='a') z2.append(np.array(['barbar'], dtype='U6'))

z3 = zarr.open('a.zarr', mode='r') print(z3[:]) ```

It works fine and prints ['foo' 'barbar'], and the encoding is "dtype": "<U6": $ cat a.zarr/.zarray { "chunks": [ 1 ], "compressor": { "blocksize": 0, "clevel": 5, "cname": "lz4", "id": "blosc", "shuffle": 1 }, "dtype": "<U6", "fill_value": "0", "filters": null, "order": "C", "shape": [ 1 ], "zarr_format": 2 }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr with string dtype 414641120
459667067 https://github.com/pydata/xarray/pull/2706#issuecomment-459667067 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ1OTY2NzA2Nw== davidbrochart 4711805 2019-02-01T09:51:55Z 2019-02-01T09:51:55Z CONTRIBUTOR

When we use this feature e.g. to store data that is produced every day, we might start with a data set that has a small size on the time dimension, and thus the chunks will be chosen according to this initial shape. When we append to this data set, will the chunks be kept as in the initial zarr archive? If so, we might end up with a lot of small chunks on the time dimension, where ideally we would have chosen only one chunk.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
458866421 https://github.com/pydata/xarray/pull/2706#issuecomment-458866421 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ1ODg2NjQyMQ== davidbrochart 4711805 2019-01-30T09:05:53Z 2019-01-30T09:05:53Z CONTRIBUTOR

zarr stores the reference in the .zattrs file: { "_ARRAY_DIMENSIONS": [ "time" ], "calendar": "proleptic_gregorian", "units": "days since 2000-01-01 00:00:00" }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
458730247 https://github.com/pydata/xarray/pull/2706#issuecomment-458730247 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ1ODczMDI0Nw== davidbrochart 4711805 2019-01-29T22:19:07Z 2019-01-29T22:19:07Z CONTRIBUTOR

To make it work, time dimensions would have to be treated separately because zarr doesn't encode absolute time values but deltas relative to a reference (see https://github.com/davidbrochart/pangeo_upload/blob/master/py/trmm2pangeo.py#L108).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
458720920 https://github.com/pydata/xarray/pull/2706#issuecomment-458720920 https://api.github.com/repos/pydata/xarray/issues/2706 MDEyOklzc3VlQ29tbWVudDQ1ODcyMDkyMA== davidbrochart 4711805 2019-01-29T21:50:14Z 2019-01-29T21:50:14Z CONTRIBUTOR

Hi @jendrikjoe,

Thanks for your PR, I am very interested in it because this is something I was hacking around (see here). In my particular case, I want to append along a time dimension, but it looks like your PR currently doesn't support it. In the following example ds2 should have a time dimension ranging from 2000-01-01 to 2000-01-06: ```python import xarray as xr import pandas as pd

ds0 = xr.Dataset({'temperature': (['time'], [50, 51, 52])}, coords={'time': pd.date_range('2000-01-01', periods=3)}) ds1 = xr.Dataset({'temperature': (['time'], [53, 54, 55])}, coords={'time': pd.date_range('2000-01-04', periods=3)})

ds0.to_zarr('temp') ds1.to_zarr('temp', mode='a', append_dim='time')

ds2 = xr.open_zarr('temp') But it's not the case: ds2.time <xarray.DataArray 'time' (time: 6)> array(['2000-01-01T00:00:00.000000000', '2000-01-02T00:00:00.000000000', '2000-01-03T00:00:00.000000000', '2000-01-01T00:00:00.000000000', '2000-01-02T00:00:00.000000000', '2000-01-03T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 2000-01-01 2000-01-02 ... 2000-01-03 ``` Maybe it's not intended to work with time dimensions yet?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Appending to zarr store 402908148
451068534 https://github.com/pydata/xarray/issues/2644#issuecomment-451068534 https://api.github.com/repos/pydata/xarray/issues/2644 MDEyOklzc3VlQ29tbWVudDQ1MTA2ODUzNA== davidbrochart 4711805 2019-01-03T07:06:25Z 2019-01-03T07:06:25Z CONTRIBUTOR

Thanks @shoyer. Unfortunately PR https://github.com/pandas-dev/pandas/pull/22043 has been put on hold.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray concat with tolerance 395384938
450823299 https://github.com/pydata/xarray/issues/2628#issuecomment-450823299 https://api.github.com/repos/pydata/xarray/issues/2628 MDEyOklzc3VlQ29tbWVudDQ1MDgyMzI5OQ== davidbrochart 4711805 2019-01-02T09:55:43Z 2019-01-02T09:55:43Z CONTRIBUTOR

Thanks @dcherian. For me the issue remains when I create a virtual environment with xarray 0.11.1.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Empty plot with pcolormesh in the notebook 393742068

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