Skip to content

Commit 407500a

Browse files
committed
add hard coded tollerance
1 parent a337057 commit 407500a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fractal_tasks_core/lib_remove_FOV_overlaps.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,17 @@ def get_overlapping_pair(tmp_df, tol=0):
8787
return False
8888

8989

90-
def get_bbox_overlapping_pair(tmp_df, tol=10e-10):
90+
def get_overlapping_pairs_3D(tmp_df, pixel_sizes):
9191
"""
9292
Description
9393
9494
:param dummy: this is just a placeholder
9595
:type dummy: int
9696
"""
9797
# NOTE: here we use positional indices (i.e. starting from 0)
98+
tol = 10e-10
99+
if tol > min(pixel_sizes) / 1e3:
100+
raise Exception(f"{tol=} but {pixel_sizes=}")
98101
new_tmp_df = tmp_df.copy()
99102

100103
new_tmp_df["x_micrometer_max"] = (

0 commit comments

Comments
 (0)