Skip to content

Commit e3e8923

Browse files
committed
Fixed lint
1 parent d9866dd commit e3e8923

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

ctc_metrics/metrics/biological/bc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def is_matching(
5555
comp_children: np.ndarray,
5656
tr: int,
5757
tc: int
58-
):
58+
): #pylint: disable=too-many-arguments
5959
"""
6060
Checks if the reference and the computed track match.
6161

ctc_metrics/metrics/hota/chota.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def chota(
5656
labels_comp: list,
5757
mapped_ref: list,
5858
mapped_comp: list
59-
):
59+
): #pylint: disable=too-many-arguments
6060
"""
6161
6262

ctc_metrics/metrics/technical/tra.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def tra(
99
num_vertices: int,
1010
num_edges: int,
1111
**_ignored
12-
):
12+
): #pylint: disable=too-many-arguments
1313
"""
1414
Calculate Tracking (TRA) metric.
1515

ctc_metrics/scripts/evaluate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def calculate_metrics(
128128
segm: dict,
129129
metrics: list = None,
130130
is_valid: bool = None,
131-
): # pylint: disable=too-complex
131+
): # pylint: disable=too-complex,too-many-arguments
132132
"""
133133
Calculate metrics for given data.
134134
@@ -202,7 +202,7 @@ def calculate_metrics(
202202
results["TRA"] = _tra
203203
results["AOGM"] = _aogm
204204
results["AOGM_0"] = _aogm0
205-
for key in ["NS", "FN", "FP", "ED", "EA", "EC"]:
205+
for key in ("NS", "FN", "FP", "ED", "EA", "EC"):
206206
results[f"AOGM_{key}"] = graph_operations[key]
207207

208208
if "LNK" in metrics:

ctc_metrics/scripts/noise.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def add_noise(
294294
noise_add_idsw: int = 0,
295295
noise_remove_matches: int = 0,
296296
noise_remove_mitosis: int = 0,
297-
):
297+
): #pylint: disable=too-many-arguments
298298
"""
299299
Add noise to the data.
300300
@@ -407,7 +407,7 @@ def run_noisy_sample(
407407
name: str,
408408
setting: dict,
409409
default_setting: dict,
410-
):
410+
): #pylint: disable=too-many-arguments
411411
"""
412412
Run a noisy sample
413413
@@ -486,7 +486,7 @@ def create_noise_settings(
486486
num_matches: int,
487487
comp_tracks: np.ndarray,
488488
ref_tracks: np.ndarray,
489-
):
489+
): #pylint: disable=too-many-arguments
490490
"""
491491
Create a list of noise settings that should be executed from the given
492492
parameters.
@@ -546,7 +546,7 @@ def evaluate_sequence(
546546
num_false_pos: int = 500,
547547
num_idsw: int = 500,
548548
num_matches: int = 500,
549-
):
549+
): #pylint: disable=too-many-arguments
550550
"""
551551
Evaluates a single sequence
552552

ctc_metrics/scripts/visualize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def create_colored_image(
190190
ids_to_show: list = None,
191191
frame: int = None,
192192
parents: dict = None,
193-
):
193+
): #pylint: disable=too-many-arguments
194194
"""
195195
Creates a colored image from the input image and the results.
196196

ctc_metrics/utils/representations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def create_detection_test_matrix(
212212
labels_comp: list,
213213
mapped_ref: list,
214214
mapped_comp: list,
215-
):
215+
): #pylint: disable=too-many-arguments
216216
"""
217217
Creates the detection test matrix for the input tracks. The detection test
218218
is stored as a sparse matrix with num_V_C rows and num_V_R columns. The
@@ -250,7 +250,7 @@ def count_acyclic_graph_correction_operations(
250250
labels_comp: list,
251251
mapped_ref: list,
252252
mapped_comp: list,
253-
):
253+
): #pylint: disable=too-many-arguments
254254
"""
255255
Calculates the necessary operations to correct the result tracks to match
256256
the ground truth tracks. The operations are counted according to:

0 commit comments

Comments
 (0)