Skip to content
Snippets Groups Projects
Commit 7d204add authored by Lan Dam's avatar Lan Dam
Browse files

correct way to get min, max indexes when zoom in

parent 50967518
No related branches found
No related tags found
1 merge request!149Fix bug happen when zooming in overlap section
Pipeline #2789 passed with stage
in 2 minutes and 43 seconds
......@@ -254,12 +254,8 @@ def get_total_miny_maxy(
if new_x.size == 0:
return 0, None, None
new_min_x = min(new_x)
new_max_x = max(new_x)
new_min_x_index = np.where(x == new_min_x)[0][0]
new_max_x_index = np.where(x == new_max_x)[0][0]
new_min_x_index = min(new_x_indexes)
new_max_x_index = max(new_x_indexes)
new_y = y[new_min_x_index:new_max_x_index + 1]
new_min_y = min(new_y)
new_max_y = max(new_y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment