From 87934d2b9ee730a603ae3017e74a7fde8d83b5a9 Mon Sep 17 00:00:00 2001 From: Siddh Patel <47033295+siddhp1@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:35:06 -0500 Subject: [PATCH] Reorder args --- modules/detect_target/detect_target_factory.py | 4 ++-- modules/detect_target/detect_target_worker.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/detect_target/detect_target_factory.py b/modules/detect_target/detect_target_factory.py index e2c23a61..376456cb 100644 --- a/modules/detect_target/detect_target_factory.py +++ b/modules/detect_target/detect_target_factory.py @@ -20,14 +20,14 @@ class DetectTargetOption(enum.Enum): def create_detect_target( + save_name: str, + show_annotations: bool, detect_target_option: DetectTargetOption, config: ( detect_target_brightspot.DetectTargetBrightspotConfig | detect_target_ultralytics.DetectTargetUltralyticsConfig ), local_logger: logger.Logger, - show_annotations: bool, - save_name: str, ) -> tuple[bool, base_detect_target.BaseDetectTarget | None]: """ Construct detect target class at runtime. diff --git a/modules/detect_target/detect_target_worker.py b/modules/detect_target/detect_target_worker.py index ffffd7ec..d4c2ec05 100644 --- a/modules/detect_target/detect_target_worker.py +++ b/modules/detect_target/detect_target_worker.py @@ -14,13 +14,13 @@ def detect_target_worker( + save_name: str, + show_annotations: bool, detect_target_option: detect_target_factory.DetectTargetOption, config: ( detect_target_brightspot.DetectTargetBrightspotConfig | detect_target_ultralytics.DetectTargetUltralyticsConfig ), - show_annotations: bool, - save_name: str, input_queue: queue_proxy_wrapper.QueueProxyWrapper, output_queue: queue_proxy_wrapper.QueueProxyWrapper, controller: worker_controller.WorkerController, @@ -46,11 +46,11 @@ def detect_target_worker( local_logger.info("Logger initialized", True) result, detector = detect_target_factory.create_detect_target( + save_name, + show_annotations, detect_target_option, config, local_logger, - show_annotations, - save_name, ) if not result: