home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where author_association = "MEMBER" and issue = 253395960 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

  • dcherian 3
  • shoyer 1
  • crusaderky 1

issue 1

  • Index variables loaded from dask can be computed twice · 5 ✖

author_association 1

  • MEMBER · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
538533149 https://github.com/pydata/xarray/issues/1533#issuecomment-538533149 https://api.github.com/repos/pydata/xarray/issues/1533 MDEyOklzc3VlQ29tbWVudDUzODUzMzE0OQ== dcherian 2448579 2019-10-04T19:35:55Z 2019-10-04T19:35:55Z MEMBER

Adding python if not isinstance(coords, Frozen): coords.update(indexes) before the merge_core call fixes this. Not sure if its right.

https://github.com/pydata/xarray/blob/283b4feba601e9838ed538106b2091d0b8264c77/xarray/core/merge.py#L455-L462

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Index variables loaded from dask can be computed twice 253395960
537541838 https://github.com/pydata/xarray/issues/1533#issuecomment-537541838 https://api.github.com/repos/pydata/xarray/issues/1533 MDEyOklzc3VlQ29tbWVudDUzNzU0MTgzOA== dcherian 2448579 2019-10-02T15:16:40Z 2019-10-02T15:16:40Z MEMBER

Haha I thought it was already in!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Index variables loaded from dask can be computed twice 253395960
537527958 https://github.com/pydata/xarray/issues/1533#issuecomment-537527958 https://api.github.com/repos/pydata/xarray/issues/1533 MDEyOklzc3VlQ29tbWVudDUzNzUyNzk1OA== shoyer 1217238 2019-10-02T14:46:40Z 2019-10-02T14:46:40Z MEMBER

We should probably merge my merging refactor before doing much more on this...

On Wed, Oct 2, 2019 at 7:28 AM Deepak Cherian notifications@github.com wrote:

Nice example!

I tracked this down to

  1. as_variable being called when extracting the index. This seems sensible.

https://github.com/pydata/xarray/blob/21705e61503fb49f000186c0d556e5623bd5ac82/xarray/core/merge.py#L413-L420 2. as_variable being called again in the expand_variable_dicts call in merge_core (should be avoided):

https://github.com/pydata/xarray/blob/21705e61503fb49f000186c0d556e5623bd5ac82/xarray/core/merge.py#L493-L497

We need to replace the appropriate objects in aligned with IndexVariables from indexes if indexes is not None.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/1533?email_source=notifications&email_token=AAJJFVQSTUPMQV6FAQGHX5LQMSVXFA5CNFSM4DYTHFMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAE6GKI#issuecomment-537518889, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJJFVW6FY37NVRUPXSMQU3QMSVXFANCNFSM4DYTHFMA .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Index variables loaded from dask can be computed twice 253395960
537518889 https://github.com/pydata/xarray/issues/1533#issuecomment-537518889 https://api.github.com/repos/pydata/xarray/issues/1533 MDEyOklzc3VlQ29tbWVudDUzNzUxODg4OQ== dcherian 2448579 2019-10-02T14:28:01Z 2019-10-02T14:28:01Z MEMBER

Nice example!

I tracked this down to 1. as_variable being called when extracting the index. This seems sensible. https://github.com/pydata/xarray/blob/21705e61503fb49f000186c0d556e5623bd5ac82/xarray/core/merge.py#L413-L420 2. as_variable being called again in the expand_variable_dicts call in merge_core (should be avoided): https://github.com/pydata/xarray/blob/21705e61503fb49f000186c0d556e5623bd5ac82/xarray/core/merge.py#L493-L497

We need to replace the appropriate objects in aligned with IndexVariables from indexes if indexes is not None.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Index variables loaded from dask can be computed twice 253395960
537398310 https://github.com/pydata/xarray/issues/1533#issuecomment-537398310 https://api.github.com/repos/pydata/xarray/issues/1533 MDEyOklzc3VlQ29tbWVudDUzNzM5ODMxMA== crusaderky 6213168 2019-10-02T08:46:45Z 2019-10-02T08:46:45Z MEMBER

Still valid in xarray 0.13

```python import xarray import numpy import dask.array

def kernel(): print("Kernel invoked!") return numpy.array([100, 200])

data = dask.array.Array(name='foo', dask={('foo', 0): (kernel, )}, chunks=((2,),), dtype=float) ds = xarray.Dataset(coords={'z': ('z', data)}) output: Kernel invoked! Kernel invoked! ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Index variables loaded from dask can be computed twice 253395960

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