File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ Enhancements
27
27
- Character arrays' character dimension name decoding and encoding handled by
28
28
``var.encoding['char_dim_name'] `` (:issue: `2895 `)
29
29
By `James McCreight <https://github.com/jmccreight >`_.
30
-
30
+
31
31
Bug fixes
32
32
~~~~~~~~~
33
33
34
+ - a bug fix in rolling with dask and bottleneck
35
+ (:issue: `2940 `)
36
+ By `Keisuke Fujii <https://github.com/fujiisoup >`_.
34
37
- indexing with an empty list creates an object with zero-length axis (:issue: `2882 `)
35
38
By `Mayeul d'Avezac <https://github.com/mdavezac >`_.
36
39
- Return correct count for scalar datetime64 arrays (:issue: `2770 `)
@@ -147,9 +150,9 @@ Other enhancements
147
150
By `Keisuke Fujii <https://github.com/fujiisoup >`_.
148
151
- Added :py:meth: `~xarray.Dataset.drop_dims ` (:issue: `1949 `).
149
152
By `Kevin Squire <https://github.com/kmsquire >`_.
150
- - ``xr.open_zarr `` now accepts manually specified chunks with the ``chunks= ``
151
- parameter. ``auto_chunk=True `` is equivalent to ``chunks='auto' `` for
152
- backwards compatibility. The ``overwrite_encoded_chunks `` parameter is
153
+ - ``xr.open_zarr `` now accepts manually specified chunks with the ``chunks= ``
154
+ parameter. ``auto_chunk=True `` is equivalent to ``chunks='auto' `` for
155
+ backwards compatibility. The ``overwrite_encoded_chunks `` parameter is
153
156
added to remove the original zarr chunk encoding.
154
157
By `Lily Wang <https://github.com/lilyminium >`_.
155
158
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def wrapped_func(self, **kwargs):
275
275
if isinstance (padded .data , dask_array_type ):
276
276
# Workaround to make the padded chunk size is larger than
277
277
# self.window-1
278
- shift = - (self .window + 1 ) // 2
278
+ shift = - (self .window - 1 )
279
279
offset = (self .window - 1 ) // 2
280
280
valid = (slice (None ), ) * axis + (
281
281
slice (offset , offset + self .obj .shape [axis ]), )
@@ -285,7 +285,7 @@ def wrapped_func(self, **kwargs):
285
285
padded = padded .pad_with_fill_value ({self .dim : (0 , - shift )})
286
286
287
287
if isinstance (padded .data , dask_array_type ):
288
- values = dask_rolling_wrapper (func , padded ,
288
+ values = dask_rolling_wrapper (func , padded . data ,
289
289
window = self .window ,
290
290
min_count = min_count ,
291
291
axis = axis )
You can’t perform that action at this time.
0 commit comments