DAQ: cx and cy were flipped in get_result_list_from_com

This commit is contained in:
2025-12-04 11:29:39 +01:00
parent 0da0ebf325
commit 366581b397
+1 -1
View File
@@ -266,7 +266,7 @@ def com_nan_check(com):
def get_result_list_from_com(images, com: CenterOfMassModel):
if not com_nan_check(com):
return None
cy, cx = com.n_x, com.n_y
cx, cy = com.n_x, com.n_y
start_x, end_x = round(cx - 1), round(cx + 1)
start_y, end_y = round(cy - 1), round(cy + 1)
logger.info(f"range x {start_x} {end_x}, y {start_y} {end_y}")