Skip to content

Commit

Permalink
Fix incorrect logging (issue #319)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Jan 28, 2025
1 parent 9d8a620 commit 9a78f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/scaffolding/scaffold_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def __init__(self, rukki_paths, telomere_locations_file, hic_alignment_file, mat
else:
max_comp_size = len(max(nx.weakly_connected_components(G), key=len))
if max_comp_size > ScaffoldGraph.MAX_COMPONENT_FOR_DISTANCES:
self.logger.info(f"Biggest component is too big {len(max_comp_size)}, not calculating pairwise distances")
self.logger.info(f"Biggest component is too big {max_comp_size}, not calculating pairwise distances")
else:
self.logger.info("Calculating pairwise distances for assembly graph nodes")
self.dists = dict(nx.all_pairs_dijkstra_path_length(self.upd_G, weight=lambda u, v, d: self.upd_G.edges[u, v]['mid_length']))
Expand Down Expand Up @@ -1440,4 +1440,4 @@ def getPathColors(self, rukki_paths, graph):
path_colors[path_id] = 0
return path_colors



0 comments on commit 9a78f76

Please sign in to comment.