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/1568#issuecomment-329535413,https://api.github.com/repos/pydata/xarray/issues/1568,329535413,MDEyOklzc3VlQ29tbWVudDMyOTUzNTQxMw==,2443309,2017-09-14T16:24:03Z,2017-09-14T16:24:03Z,MEMBER,any final comments here?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,256912384
https://github.com/pydata/xarray/pull/1568#issuecomment-329286009,https://api.github.com/repos/pydata/xarray/issues/1568,329286009,MDEyOklzc3VlQ29tbWVudDMyOTI4NjAwOQ==,1217238,2017-09-13T20:23:16Z,2017-09-13T20:23:16Z,MEMBER,"> Not check the version of bottleneck at all and live with some harder to predict behavior on rolling.meadian()
Sounds good to me.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,256912384
https://github.com/pydata/xarray/pull/1568#issuecomment-329068071,https://api.github.com/repos/pydata/xarray/issues/1568,329068071,MDEyOklzc3VlQ29tbWVudDMyOTA2ODA3MQ==,2443309,2017-09-13T06:03:59Z,2017-09-13T06:03:59Z,MEMBER,"> Can we trigger this warning lazily (e.g., when calling actually resample)? If we do this at import time we are going to get a lot of complaints from users using bottleneck < 1.1 about irrelevant warnings.
@shoyer - I'm not exactly sure how to do this consistently throughout the package. In d532a1f
I removed the warning and we fall back to numpy silently. Here's some ideas of what we could do:
1. Raise an error/warning when an unsupported version of bottleneck is imported
2. Not check the version of bottleneck at all and live with some harder to predict behavior on `rolling.meadian()`
3. Silently fall back to numpy when an unsupported version of bottleneck is imported...and for rolling methods, raise a warning at either import (easy) or runtime (harder).
I'm actually leaning toward 2 right now. We don't enforce strict minimum versions on other dependencies so it seems like what we're trying to do may be a bit overkill.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,256912384
https://github.com/pydata/xarray/pull/1568#issuecomment-328750128,https://api.github.com/repos/pydata/xarray/issues/1568,328750128,MDEyOklzc3VlQ29tbWVudDMyODc1MDEyOA==,2443309,2017-09-12T06:21:33Z,2017-09-12T06:21:33Z,MEMBER,I went ahead and changed the bottleneck version. It really cleans up the all the rolling methods and the testing so I think this is an overall nice change. ,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,256912384
https://github.com/pydata/xarray/pull/1568#issuecomment-328736801,https://api.github.com/repos/pydata/xarray/issues/1568,328736801,MDEyOklzc3VlQ29tbWVudDMyODczNjgwMQ==,1217238,2017-09-12T05:03:49Z,2017-09-12T05:03:49Z,MEMBER,"That works for me. But note that you can also use **kwargs to insert
conditional keyword arguments.
On Mon, Sep 11, 2017 at 10:01 PM Joe Hamman
wrote:
> *@jhamman* commented on this pull request.
> ------------------------------
>
> In xarray/core/ops.py
> :
>
> > + if axis < 0:
> + axis = a.ndim + axis
> + depth = {d: 0 for d in range(a.ndim)}
> + depth[axis] = window - 1
> + boundary = {d: np.nan for d in range(a.ndim)}
> + # create ghosted arrays
> + ag = da.ghost.ghost(a, depth=depth, boundary=boundary)
> + # apply rolling func
> + out = ag.map_blocks(moving_func, window, min_count=min_count,
> + axis=axis, dtype=a.dtype)
> + # trim array
> + result = da.ghost.trim_internal(out, depth)
> + return result
> +
> +
> +def dask_rolling_wrapper_without_min_count(moving_func, a, window, axis=-1):
>
> If we update the minimum support bottleneck version to 1.1, we can do away
> with this special case (also present for the non-dask case) all together.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> , or mute
> the thread
>
> .
>
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,256912384