home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 250908588

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/964#issuecomment-250908588 https://api.github.com/repos/pydata/xarray/issues/964 250908588 MDEyOklzc3VlQ29tbWVudDI1MDkwODU4OA== 6213168 2016-10-01T11:57:38Z 2016-10-01T11:57:38Z MEMBER

I worked around the limitation. It would be nice if apply() did the below automatically!

``` from itertools import chain from functools import wraps import dask.array

def dask_kernel(func): """Invoke dask.array.map_blocks(func, args, kwds) if at least one of the arguments is a dask array; else invoke func(args, kwds) """ @wraps(func) def wrapper(*args, kwds): if any(isinstance(a, dask.array.Array) for a in chain(args, kwds.values())): return dask.array.map_blocks(func, args, kwds) else: return func(args, **kwds) return wrapper ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  170779798
Powered by Datasette · Queries took 0.641ms · About: xarray-datasette