File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -260,13 +260,13 @@ def bb2wdw(bb, rtr):
260
260
((row_start, row_stop), (col_start, col_stop))
261
261
'''
262
262
rbb = rtr .bounds
263
- xi = pd . Series ( np .linspace (rbb .left , rbb .right , rtr .shape [1 ]) )
264
- yi = pd . Series ( np .linspace (rbb .bottom , rbb .top , rtr .shape [0 ]) )
263
+ xi = np .linspace (rbb .left , rbb .right , rtr .shape [1 ])
264
+ yi = np .linspace (rbb .bottom , rbb .top , rtr .shape [0 ])
265
265
266
- window = ((rtr .shape [0 ] - yi .searchsorted (bb [3 ])[ 0 ] ,
267
- rtr .shape [0 ] - yi .searchsorted (bb [1 ])[ 0 ] ),
268
- (xi .searchsorted (bb [0 ])[ 0 ] ,
269
- xi .searchsorted (bb [2 ])[ 0 ] )
266
+ window = ((rtr .shape [0 ] - yi .searchsorted (bb [3 ]),
267
+ rtr .shape [0 ] - yi .searchsorted (bb [1 ])),
268
+ (xi .searchsorted (bb [0 ]),
269
+ xi .searchsorted (bb [2 ]))
270
270
)
271
271
return window
272
272
You can’t perform that action at this time.
0 commit comments