Commit b2cd57ba authored by Chris Smith's avatar Chris Smith
Browse files

Ensure that window indices are only uint32

Hopefully will prevent error from uint+int=float when trying to slice windows.
parent a28e0917
......@@ -183,9 +183,7 @@ class ImageWindow(object):
win_pix = win_x*win_y
win_pos_mat = np.array([np.repeat(x_steps, ny),
np.tile(y_steps, nx)],
dtype=np.uint).T
win_pos_mat = np.array([np.repeat(x_steps, ny), np.tile(y_steps, nx)], dtype=np.uint32).T
win_pix_mat = make_position_mat([win_x, win_y]).T
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment