home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER" and issue = 753965875 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • rabernat 2
  • dcherian 1
  • mathause 1

issue 1

  • Decode_cf fails when scale_factor is a length-1 list · 4 ✖

author_association 1

  • MEMBER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
736786380 https://github.com/pydata/xarray/issues/4631#issuecomment-736786380 https://api.github.com/repos/pydata/xarray/issues/4631 MDEyOklzc3VlQ29tbWVudDczNjc4NjM4MA== rabernat 1197350 2020-12-01T20:03:54Z 2020-12-01T20:03:54Z MEMBER

Ok then I am 👍 on @dcherian's solution.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Decode_cf fails when scale_factor is a length-1 list 753965875
736605843 https://github.com/pydata/xarray/issues/4631#issuecomment-736605843 https://api.github.com/repos/pydata/xarray/issues/4631 MDEyOklzc3VlQ29tbWVudDczNjYwNTg0Mw== mathause 10194086 2020-12-01T14:57:19Z 2020-12-01T14:57:19Z MEMBER

I think it just did np.array([1, 2, 3.]) * [5] numpy coverts the [5] to an array with one element, which is why it worked:

```python xr.coding.variables._scale_offset_decoding(np.array([1, 2, 3.]), [5], None, np.float)

```

https://github.com/pydata/xarray/blob/49d03d246ce657e0cd3be0582334a1a023c4b374/xarray/coding/variables.py#L217

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Decode_cf fails when scale_factor is a length-1 list 753965875
736526797 https://github.com/pydata/xarray/issues/4631#issuecomment-736526797 https://api.github.com/repos/pydata/xarray/issues/4631 MDEyOklzc3VlQ29tbWVudDczNjUyNjc5Nw== rabernat 1197350 2020-12-01T12:39:53Z 2020-12-01T12:39:53Z MEMBER

But what did we do before?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Decode_cf fails when scale_factor is a length-1 list 753965875
736196012 https://github.com/pydata/xarray/issues/4631#issuecomment-736196012 https://api.github.com/repos/pydata/xarray/issues/4631 MDEyOklzc3VlQ29tbWVudDczNjE5NjAxMg== dcherian 2448579 2020-12-01T03:36:16Z 2020-12-01T03:36:16Z MEMBER

I guess we need np.asarray(scale_factor).item()

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Decode_cf fails when scale_factor is a length-1 list 753965875

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