Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2023
1 parent e34b44b commit 7426439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/traccuracy/_tracking_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ def set_flag_on_all_edges(self, flag: EdgeAttr, value: bool = True):
else:
self.edges_by_flag[flag] = set()


def get_tracklets(self, include_division_edges: bool = False):
"""Gets a list of new TrackingGraph objects containing all tracklets of the current graph.
Expand Down
4 changes: 2 additions & 2 deletions src/traccuracy/track_errors/_ctc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_vertex_errors(matched_data: Matched):
if comp_graph.node_errors and gt_graph.node_errors:
logger.info("Node errors already calculated. Skipping graph annotation")
return

comp_graph.set_flag_on_all_nodes(NodeAttr.TRUE_POS, False)
comp_graph.set_flag_on_all_nodes(NodeAttr.NON_SPLIT, False)

Expand Down Expand Up @@ -100,7 +100,7 @@ def get_edge_errors(matched_data: Matched):

# intertrack edges = connection between parent and daughter
for graph in [comp_graph, gt_graph]:
# Set to False by default
# Set to False by default
graph.set_flag_on_all_edges(EdgeAttr.INTERTRACK_EDGE, False)

for parent in graph.get_divisions():
Expand Down

1 comment on commit 7426439

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Mean (s) BASE ef50a44 Mean (s) HEAD 7426439 Percent Change
test_load_gt_data 1.27863 1.27249 -0.48
test_load_pred_data 1.16853 1.16979 0.11
test_ctc_matched 2.28306 2.24213 -1.79
test_ctc_metrics 0.54236 0.4696 -13.41
test_ctc_div_metrics 0.27516 0.27624 0.39
test_iou_matched 9.48363 8.5644 -9.69
test_iou_div_metrics 0.29817 0.26312 -11.75

Please sign in to comment.