From 9d0756d40d8201d5c8f8b83734013d1b94d7e963 Mon Sep 17 00:00:00 2001 From: FLo-ABB Date: Wed, 30 Jul 2025 12:06:30 +0200 Subject: [PATCH] Fix command formatting in set_region method by removing unnecessary line break --- src/CognexNativePy/commands/SettingsAndCellsValues.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CognexNativePy/commands/SettingsAndCellsValues.py b/src/CognexNativePy/commands/SettingsAndCellsValues.py index 69a60b5..e557d80 100644 --- a/src/CognexNativePy/commands/SettingsAndCellsValues.py +++ b/src/CognexNativePy/commands/SettingsAndCellsValues.py @@ -214,8 +214,7 @@ def set_region( if not 0 <= row_or_row_offset <= 399: raise ValueError("The row number must be between 0 and 399 (inclusive).") formatted_row = f"{row_or_row_offset:03d}" - command = f"SR{cell_or_tag}{formatted_row}{row_offset_or_col_offset} { - col_offset_or_high} {high_or_wide} {wide_or_angle} {angle_or_curve} {curve}" + command = f"SR{cell_or_tag}{formatted_row}{row_offset_or_col_offset} {col_offset_or_high} {high_or_wide} {wide_or_angle} {angle_or_curve} {curve}" else: if not cell_or_tag: raise ValueError("The symbolic tag cannot be an empty string.")