home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 558293655 and user = 10638475 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • bonnland · 1 ✖

issue 1

  • ValueError when trying to encode time variable in a NetCDF file with CF convensions · 1 ✖

author_association 1

  • NONE 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
784497022 https://github.com/pydata/xarray/issues/3739#issuecomment-784497022 https://api.github.com/repos/pydata/xarray/issues/3739 MDEyOklzc3VlQ29tbWVudDc4NDQ5NzAyMg== bonnland 10638475 2021-02-23T20:41:17Z 2021-02-23T20:41:17Z NONE

I got a similar error message when opening a Zarr store with datetime64 time values, where I tried to set the "calendar" attribute on the time axis (the attribute was unset in the original store). I've found some xarray code that appears to treat the "calendar" and "units" time attributes as special, and it essentially prevents users from setting or changing these values, even when those values are not present:

From xarray/coding/times.py:

``` class CFDatetimeCoder(VariableCoder): def init(self, use_cftime=None): self.use_cftime = use_cftime

def encode(self, variable, name=None):
    dims, data, attrs, encoding = unpack_for_encoding(variable)
    if np.issubdtype(data.dtype, np.datetime64) or contains_cftime_datetimes(
        variable
    ):
        (data, units, calendar) = encode_cf_datetime(
            data, encoding.pop("units", None), encoding.pop("calendar", None)
        )
        safe_setitem(attrs, "units", units, name=name)
        safe_setitem(attrs, "calendar", calendar, name=name)

    return Variable(dims, data, attrs, encoding)

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError when trying to encode time variable in a NetCDF file with CF convensions 558293655

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