Skip to content

Commit

Permalink
Reorder args
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhp1 committed Jan 23, 2025
1 parent 0758c96 commit 87934d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/detect_target/detect_target_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions modules/detect_target/detect_target_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit 87934d2

Please sign in to comment.