Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoK93 committed Oct 11, 2024
1 parent 82f0642 commit 236f8fa
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ max-spelling-suggestions=2
# Maximum number of arguments for function / method
max-args=10

# Maximum number of arguments for function / method
max-positional-arguments=11

# Maximum number of locals for function / method body
max-locals=25

Expand Down
2 changes: 1 addition & 1 deletion ctc_metrics/metrics/biological/bc.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def is_matching(
comp_children: np.ndarray,
tr: int,
tc: int
): #pylint: disable=too-many-arguments
):
"""
Checks if the reference and the computed track match.
Expand Down
2 changes: 1 addition & 1 deletion ctc_metrics/metrics/hota/chota.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def chota(
labels_comp: list,
mapped_ref: list,
mapped_comp: list
): #pylint: disable=too-many-arguments
):
"""
Expand Down
2 changes: 1 addition & 1 deletion ctc_metrics/metrics/technical/tra.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def tra(
num_vertices: int,
num_edges: int,
**_ignored
): #pylint: disable=too-many-arguments
):
"""
Calculate Tracking (TRA) metric.
Expand Down
2 changes: 1 addition & 1 deletion ctc_metrics/scripts/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def calculate_metrics(
segm: dict,
metrics: list = None,
is_valid: bool = None,
): # pylint: disable=too-complex,too-many-arguments
): # pylint: disable=too-complex
"""
Calculate metrics for given data.
Expand Down
8 changes: 4 additions & 4 deletions ctc_metrics/scripts/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def add_noise(
noise_add_idsw: int = 0,
noise_remove_matches: int = 0,
noise_remove_mitosis: int = 0,
): #pylint: disable=too-many-arguments
):
"""
Add noise to the data.
Expand Down Expand Up @@ -407,7 +407,7 @@ def run_noisy_sample(
name: str,
setting: dict,
default_setting: dict,
): #pylint: disable=too-many-arguments
):
"""
Run a noisy sample
Expand Down Expand Up @@ -486,7 +486,7 @@ def create_noise_settings(
num_matches: int,
comp_tracks: np.ndarray,
ref_tracks: np.ndarray,
): #pylint: disable=too-many-arguments
):
"""
Create a list of noise settings that should be executed from the given
parameters.
Expand Down Expand Up @@ -546,7 +546,7 @@ def evaluate_sequence(
num_false_pos: int = 500,
num_idsw: int = 500,
num_matches: int = 500,
): #pylint: disable=too-many-arguments
):
"""
Evaluates a single sequence
Expand Down
2 changes: 1 addition & 1 deletion ctc_metrics/scripts/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def create_colored_image(
ids_to_show: list = None,
frame: int = None,
parents: dict = None,
): #pylint: disable=too-many-arguments
):
"""
Creates a colored image from the input image and the results.
Expand Down
4 changes: 2 additions & 2 deletions ctc_metrics/utils/representations.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def create_detection_test_matrix(
labels_comp: list,
mapped_ref: list,
mapped_comp: list,
): #pylint: disable=too-many-arguments
):
"""
Creates the detection test matrix for the input tracks. The detection test
is stored as a sparse matrix with num_V_C rows and num_V_R columns. The
Expand Down Expand Up @@ -250,7 +250,7 @@ def count_acyclic_graph_correction_operations(
labels_comp: list,
mapped_ref: list,
mapped_comp: list,
): #pylint: disable=too-many-arguments
):
"""
Calculates the necessary operations to correct the result tracks to match
the ground truth tracks. The operations are counted according to:
Expand Down

0 comments on commit 236f8fa

Please sign in to comment.