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

Merge branch 'i124_bug_in_zooming_in_overlap' into 'master'

Fix bug happen when zooming in overlap section

See merge request !149
parents 7341e59b 752bac93
No related branches found
No related tags found
1 merge request!149Fix bug happen when zooming in overlap section
Pipeline #2826 passed with stage
in 3 minutes and 30 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