home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 587735698 and user = 10194086 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

  • mathause · 2 ✖

issue 1

  • error for apply_ufunc with exclude_dims and vectorize · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
605704846 https://github.com/pydata/xarray/issues/3890#issuecomment-605704846 https://api.github.com/repos/pydata/xarray/issues/3890 MDEyOklzc3VlQ29tbWVudDYwNTcwNDg0Ng== mathause 10194086 2020-03-29T21:30:38Z 2020-03-29T21:30:38Z MEMBER

Not very elegant...

```python from collections import Counter

input_core_dims = [["time"], ["time", "foo"], ["bar"]] exclude_dims = set(["time"])

c = Counter() for dims in input_core_dims: for d in dims: if d in exclude_dims: d_new = f"{d}_{c[d]}" c.update([d]) else: d_new = d print(d_new) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  error for apply_ufunc with exclude_dims and vectorize 587735698
603882831 https://github.com/pydata/xarray/issues/3890#issuecomment-603882831 https://api.github.com/repos/pydata/xarray/issues/3890 MDEyOklzc3VlQ29tbWVudDYwMzg4MjgzMQ== mathause 10194086 2020-03-25T14:49:08Z 2020-03-25T15:18:29Z MEMBER

In apply_ufunc the signature is determined in

https://github.com/pydata/xarray/blob/009aa66620b3437cf0de675013fa7d1ff231963c/xarray/core/computation.py#L995

and

https://github.com/pydata/xarray/blob/009aa66620b3437cf0de675013fa7d1ff231963c/xarray/core/computation.py#L1013-L1015

Thus, for the given example: python signature = xr.core.computation._UFuncSignature(input_core_dims=[["time"], ["time"]]) signature.to_gufunc_string() returns '(dim0),(dim0)->()'.

So I assume _UFuncSignature (or _UFuncSignature.to_gufunc_string) should take the exclude_dims into account.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  error for apply_ufunc with exclude_dims and vectorize 587735698

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