Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/cluster_estimation/cluster_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def create(
min_new_points_to_run: int,
max_num_components: int,
random_state: int,
local_logger: logger.Logger,
min_points_per_cluster: int,
local_logger: logger.Logger,
) -> "tuple[bool, ClusterEstimation | None]":
"""
Data requirement conditions for estimation model to run.
Expand Down Expand Up @@ -111,8 +111,8 @@ def create(
min_new_points_to_run,
max_num_components,
random_state,
local_logger,
min_points_per_cluster,
local_logger,
)

def __init__(
Expand All @@ -122,8 +122,8 @@ def __init__(
min_new_points_to_run: int,
max_num_components: int,
random_state: int,
local_logger: logger.Logger,
min_points_per_cluster: int,
local_logger: logger.Logger,
) -> None:
"""
Private constructor, use create() method.
Expand Down
4 changes: 2 additions & 2 deletions modules/cluster_estimation/cluster_estimation_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def cluster_estimation_worker(
min_new_points_to_run: int,
max_num_components: int,
random_state: int,
min_points_per_cluster: int,
input_queue: queue_proxy_wrapper.QueueProxyWrapper,
output_queue: queue_proxy_wrapper.QueueProxyWrapper,
controller: worker_controller.WorkerController,
min_points_per_cluster: int,
) -> None:
"""
Estimation worker process.
Expand Down Expand Up @@ -67,8 +67,8 @@ def cluster_estimation_worker(
min_new_points_to_run,
max_num_components,
random_state,
local_logger,
min_points_per_cluster,
local_logger,
)
if not result:
local_logger.error("Worker failed to create class object", True)
Expand Down
4 changes: 1 addition & 3 deletions modules/detect_target/detect_target_brightspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def run(
# Catching all exceptions for library call
# pylint: disable-next=broad-exception-caught
except Exception as exception:
self.__local_logger.error(
f"Failed to convert to greyscale, exception: {exception}"
)
self.__local_logger.error(f"Failed to convert to greyscale, exception: {exception}")
return False, None

# Calculate the percentile threshold for bright spots
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cluster_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def cluster_model() -> cluster_estimation.ClusterEstimation: # type: ignore
MIN_NEW_POINTS_TO_RUN,
MAX_NUM_COMPONENTS,
RNG_SEED,
test_logger,
MIN_POINTS_PER_CLUSTER,
test_logger,
)
assert result
assert model is not None
Expand Down
Loading