@@ -45,9 +45,9 @@ def get_overlapping_pair(
4545 num_lines = len (tmp_df .index )
4646 for pos_ind_1 in range (num_lines ):
4747 for pos_ind_2 in range (pos_ind_1 ):
48- if is_overlapping_2D (
49- tmp_df .iloc [pos_ind_1 ], tmp_df . iloc [ pos_ind_2 ], tol = tol
50- ):
48+ bbox_1 = tmp_df . iloc [ pos_ind_1 ]. to_numpy ()
49+ bbox_2 = tmp_df .iloc [pos_ind_2 ]. to_numpy ()
50+ if is_overlapping_2D ( bbox_1 , bbox_2 , tol = tol ):
5151 return (pos_ind_1 , pos_ind_2 )
5252 return False
5353
@@ -96,9 +96,9 @@ def get_overlapping_pairs_3D(
9696 overlapping_list = []
9797 for pos_ind_1 in range (num_lines ):
9898 for pos_ind_2 in range (pos_ind_1 ):
99- overlap = is_overlapping_3D (
100- new_tmp_df .iloc [pos_ind_1 ], new_tmp_df . iloc [ pos_ind_2 ], tol = tol
101- )
99+ bbox_1 = new_tmp_df . iloc [ pos_ind_1 ]. to_numpy ()
100+ bbox_2 = new_tmp_df .iloc [pos_ind_2 ]. to_numpy ()
101+ overlap = is_overlapping_3D ( bbox_1 , bbox_2 , tol = tol )
102102 if overlap :
103103 overlapping_list .append ((pos_ind_1 , pos_ind_2 ))
104104 return overlapping_list
@@ -177,7 +177,6 @@ def remove_FOV_overlaps(df: pd.DataFrame):
177177 # Loop over wells
178178 wells = sorted (list (set ([ind [0 ] for ind in df .index ])))
179179 for well in wells :
180-
181180 logger .info (f"removing FOV overlaps for { well = } " )
182181 df_well = df .loc [well ].copy ()
183182
0 commit comments