generated from dopt-python/py311
additions from Susanne #14
@ -140,9 +140,9 @@ def measure_length(
|
|||||||
f"expected value: count = {num_contours}, expected = {const.NUM_VALID_ELECTRODES}"
|
f"expected value: count = {num_contours}, expected = {const.NUM_VALID_ELECTRODES}"
|
||||||
)
|
)
|
||||||
|
|
||||||
x_min = min(np.min(c[:, 0, 0]) for c in filtered_cnts) - 20
|
x_min = max(min(np.min(c[:, 0, 0]) for c in filtered_cnts) - 20, 0)
|
||||||
x_max = max(np.max(c[:, 0, 0]) for c in filtered_cnts) + 20
|
x_max = max(np.max(c[:, 0, 0]) for c in filtered_cnts) + 20
|
||||||
y_min = min(np.min(c[:, 0, 1]) for c in filtered_cnts) - 20
|
y_min = max(min(np.min(c[:, 0, 1]) for c in filtered_cnts) - 20, 0)
|
||||||
y_max = max(np.max(c[:, 0, 1]) for c in filtered_cnts) + 20
|
y_max = max(np.max(c[:, 0, 1]) for c in filtered_cnts) + 20
|
||||||
|
|
||||||
rightmost_x_third = max(filtered_cnts[2][:, 0, 0])
|
rightmost_x_third = max(filtered_cnts[2][:, 0, 0])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user