home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where issue = 573972855 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • jhamman 3
  • dcherian 2
  • shoyer 1
  • pep8speaks 1

author_association 2

  • MEMBER 6
  • NONE 1

issue 1

  • map_blocks: Allow passing dask-backed objects in args · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
638572918 https://github.com/pydata/xarray/pull/3818#issuecomment-638572918 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYzODU3MjkxOA== shoyer 1217238 2020-06-04T03:00:17Z 2020-06-04T03:00:17Z MEMBER

+1

On Tue, Jun 2, 2020 at 11:44 AM Joe Hamman notifications@github.com wrote:

Things seem to have died down here. I suggest we merge this as is. As a reminder, the map_blocks function is still marked as an experimental feature so I'm not too concerned about breaking things in the wild. Better to get some early feedback and iterate on the design.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/3818#issuecomment-637737195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJFVVSE6VIHAUV4IUX6H3RUVCARANCNFSM4K7UHXFA .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
637737195 https://github.com/pydata/xarray/pull/3818#issuecomment-637737195 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYzNzczNzE5NQ== jhamman 2443309 2020-06-02T18:44:08Z 2020-06-02T18:44:08Z MEMBER

Things seem to have died down here. I suggest we merge this as is. As a reminder, the map_blocks function is still marked as an experimental feature so I'm not too concerned about breaking things in the wild. Better to get some early feedback and iterate on the design.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
602110992 https://github.com/pydata/xarray/pull/3818#issuecomment-602110992 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYwMjExMDk5Mg== pep8speaks 24736507 2020-03-21T22:02:28Z 2020-05-29T17:44:28Z NONE

Hello @dcherian! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2020-05-29 17:44:28 UTC
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
633741908 https://github.com/pydata/xarray/pull/3818#issuecomment-633741908 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYzMzc0MTkwOA== dcherian 2448579 2020-05-25T23:29:51Z 2020-05-25T23:29:51Z MEMBER

This is ready for review.

I've minimized the diff. Once this is merged, I'll do some refactoring.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
624768821 https://github.com/pydata/xarray/pull/3818#issuecomment-624768821 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYyNDc2ODgyMQ== jhamman 2443309 2020-05-06T16:59:11Z 2020-05-06T16:59:11Z MEMBER

@dcherian - can you resolve conflicts here?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
602111123 https://github.com/pydata/xarray/pull/3818#issuecomment-602111123 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYwMjExMTEyMw== dcherian 2448579 2020-03-21T22:03:41Z 2020-03-21T22:03:41Z MEMBER

I fixed that on the template branch. After a rebase, this example works with assert_equal

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855
602108359 https://github.com/pydata/xarray/pull/3818#issuecomment-602108359 https://api.github.com/repos/pydata/xarray/issues/3818 MDEyOklzc3VlQ29tbWVudDYwMjEwODM1OQ== jhamman 2443309 2020-03-21T21:39:21Z 2020-03-21T21:39:21Z MEMBER

I've started testing this out and have run into one problem. Here's a simple example that uses template and Dask backed DataArrays in args

```python ds = xr.tutorial.load_dataset('air_temperature')

def func(X, y): ''' a simple reduction (assume the output can't be inferred automatically) ''' return X.sum('time') + y.min('time')

ds = ds.chunk({'lat': 10, 'lon': 10}) X = ds['air'] y = ds['air'] **2 template = X.sum('time')

expected = func(X, y) actual = xr.map_blocks(func, X, args=[y], template=template) xr.testing.assert_identical(actual, expected) ```

This raises:

```python-traceback

KeyError Traceback (most recent call last) <ipython-input-9-5491345c8970> in <module> 5 6 expected = func(X, y) ----> 7 actual = xr.map_blocks(func, X, args=[y], template=template) 8 xr.testing.assert_identical(actual, expected)

/srv/conda/envs/notebook/lib/python3.7/site-packages/xarray/core/parallel.py in map_blocks(func, obj, args, kwargs, template) 424 # even if length of dimension is changed by the applied function 425 expected["shapes"] = { --> 426 k: output_chunks[k][v] for k, v in input_chunk_index.items() 427 } 428 expected["data_vars"] = set(template.data_vars.keys()) # type: ignore

/srv/conda/envs/notebook/lib/python3.7/site-packages/xarray/core/parallel.py in <dictcomp>(.0) 424 # even if length of dimension is changed by the applied function 425 expected["shapes"] = { --> 426 k: output_chunks[k][v] for k, v in input_chunk_index.items() 427 } 428 expected["data_vars"] = set(template.data_vars.keys()) # type: ignore

KeyError: 'time' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  map_blocks: Allow passing dask-backed objects in args 573972855

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