Commit aa05a2e
committed
Fix Cube.rolling_window with lazy auxiliary coordinates
rolling_window built each window's coordinate bounds with new_bounds[:,
(0, -1)]. A tuple index is treated by Dask as a multidimensional index,
so a lazy coordinate along the windowed dimension raised a TypeError.
Index with the list [0, -1] instead, which numpy and Dask both treat as
selecting the first and last column, giving an identical (and still lazy)
result.
Fixes #6480.1 parent 3f0dd8d commit aa05a2e
3 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5243 | 5243 | | |
5244 | 5244 | | |
5245 | 5245 | | |
5246 | | - | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
5247 | 5250 | | |
5248 | 5251 | | |
5249 | 5252 | | |
5250 | 5253 | | |
5251 | | - | |
| 5254 | + | |
5252 | 5255 | | |
5253 | 5256 | | |
5254 | 5257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1089 | 1105 | | |
1090 | 1106 | | |
1091 | 1107 | | |
| |||
0 commit comments