@@ -1223,10 +1223,11 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
1223
1223
cdef:
1224
1224
numeric ai
1225
1225
bint is_variable, should_replace
1226
- int64_t s, e, N, i, j , removed
1226
+ int64_t N, i, removed
1227
1227
Py_ssize_t nobs = 0
1228
1228
deque Q[int64_t]
1229
- ndarray[int64_t] starti, endi
1229
+ ndarray[int64_t] _
1230
+ # ndarray[int64_t] starti, endi
1230
1231
ndarray[numeric, ndim= 1 ] output
1231
1232
cdef:
1232
1233
int64_t* death
@@ -1238,7 +1239,7 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
1238
1239
cdef:
1239
1240
cdef numeric r
1240
1241
1241
- starti, endi , N, win, minp, is_variable = get_window_indexer(
1242
+ _, _ , N, win, minp, is_variable = get_window_indexer(
1242
1243
input , win,
1243
1244
minp, index, closed)
1244
1245
@@ -1279,25 +1280,6 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
1279
1280
Q.push_back(i)
1280
1281
1281
1282
output[N- 1 ] = calc_mm(minp, nobs, input [Q[0 ]])
1282
- # for i in range(N):
1283
- # s = starti[i]
1284
- # e = endi[i]
1285
- #
1286
- # r = input[s]
1287
- # nobs = 0
1288
- # for j in range(s, e):
1289
- #
1290
- # # adds, death at the i offset
1291
- # ai = init_mm(input[j], &nobs, is_max)
1292
- #
1293
- # if is_max:
1294
- # if ai > r:
1295
- # r = ai
1296
- # else:
1297
- # if ai < r:
1298
- # r = ai
1299
- #
1300
- # output[i] = calc_mm(minp, nobs, r)
1301
1283
1302
1284
else :
1303
1285
# setup the rings of death!
0 commit comments