home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "NONE" and user = 31460695 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 2

  • Adding resample functionality to CFTimeIndex 3
  • Expose use_cftime option in open_zarr 1

user 1

  • naomi-henderson · 4 ✖

author_association 1

  • NONE · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
525418536 https://github.com/pydata/xarray/issues/2886#issuecomment-525418536 https://api.github.com/repos/pydata/xarray/issues/2886 MDEyOklzc3VlQ29tbWVudDUyNTQxODUzNg== naomi-henderson 31460695 2019-08-27T18:08:07Z 2019-08-27T18:08:07Z NONE

@Geektrovert and @spencerkclark - any progress on this? It would be great to have it working in time for the CMIP6 hackathon in order to suppress all of the warning messages when opening zarr stores. For example, a zarr store using cftime.DatetimeGregorian (e.g., cftime.DatetimeGregorian(2349, 12, 16, 12, 0, 0, 0, 4, 350)) will always generate the warning: /usr/local/python/anaconda3/envs/pangeoJun2019/lib/python3.6/site-packages/xarray/coding/times.py:465: SerializationWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using cftime.datetime objects instead, reason: dates out of range dtype = _decode_cf_datetime_dtype(data, units, calendar, self.use_cftime) /usr/local/python/anaconda3/envs/pangeoJun2019/lib/python3.6/site-packages/xarray/coding/times.py:465: SerializationWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using cftime.datetime objects instead, reason: dates out of range dtype = _decode_cf_datetime_dtype(data, units, calendar, self.use_cftime) /usr/local/python/anaconda3/envs/pangeoJun2019/lib/python3.6/site-packages/numpy/core/numeric.py:538: SerializationWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using cftime.datetime objects instead, reason: dates out of range return array(a, dtype, copy=False, order=order) For the CMIP6 collection, I always use use_cftime=True in open_mfdataset, but then when I make the zarr store and read it back in, it generates these warnings - always a distraction for anyone not used to dealing with this data

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Expose use_cftime option in open_zarr 431970156
395067197 https://github.com/pydata/xarray/issues/2191#issuecomment-395067197 https://api.github.com/repos/pydata/xarray/issues/2191 MDEyOklzc3VlQ29tbWVudDM5NTA2NzE5Nw== naomi-henderson 31460695 2018-06-06T13:25:11Z 2018-06-06T13:25:11Z NONE

Yes, when open_mfdataset decides to convert to CFTime this is much faster. When time is in datetime64, I get: ```


AttributeError Traceback (most recent call last) <ipython-input-72-a96fa0263d3e> in <module>() 9 dss = xr.open_mfdataset(files,decode_times=True,autoclose=True) 10 #month_start = [DatetimeNoLeap(date.dt.year, date.dt.month, 1) for date in dss.time] ---> 11 month_start = [DatetimeNoLeap(date.year, date.month, 1) for date in dss.time.values] 12 #month_start = [DatetimeNoLeap(yr, mon, 1) for yr,mon in zip(dss.time.dt.year,dss.time.dt.month)] 13 #break

<ipython-input-72-a96fa0263d3e> in <listcomp>(.0) 9 dss = xr.open_mfdataset(files,decode_times=True,autoclose=True) 10 #month_start = [DatetimeNoLeap(date.dt.year, date.dt.month, 1) for date in dss.time] ---> 11 month_start = [DatetimeNoLeap(date.year, date.month, 1) for date in dss.time.values] 12 #month_start = [DatetimeNoLeap(yr, mon, 1) for yr,mon in zip(dss.time.dt.year,dss.time.dt.month)] 13 #break

AttributeError: 'numpy.datetime64' object has no attribute 'year' ``` You can see I made a feeble attempt to fix it to work for all the CMIP5 calendars, but is just as slow. Any suggestions?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding resample functionality to CFTimeIndex 327089588
394890878 https://github.com/pydata/xarray/issues/2191#issuecomment-394890878 https://api.github.com/repos/pydata/xarray/issues/2191 MDEyOklzc3VlQ29tbWVudDM5NDg5MDg3OA== naomi-henderson 31460695 2018-06-05T23:20:00Z 2018-06-05T23:20:00Z NONE

@spencerkclark thanks! I hadn't figured out that particular workaround, but it works, albeit quite slow. For now it will get me to the next step, but just changing to first-of-the-month takes longer than regridding all models to a common grid!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding resample functionality to CFTimeIndex 327089588
394827475 https://github.com/pydata/xarray/issues/2191#issuecomment-394827475 https://api.github.com/repos/pydata/xarray/issues/2191 MDEyOklzc3VlQ29tbWVudDM5NDgyNzQ3NQ== naomi-henderson 31460695 2018-06-05T19:15:09Z 2018-06-05T19:15:09Z NONE

I am trying to combine the monthly CMIP5 rcp85 ts datasets (go past 2064AD) with the myriad calendars, so I love the new CFTimeIndex! But I need resample(time='MS') in order to force them all to start on the first of each month thanks!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding resample functionality to CFTimeIndex 327089588

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