Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Antipov committed Aug 9, 2024
1 parent aab4693 commit 067e20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/scaffolding/scaffold_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def orNodeDist(self, from_node, to_node):
res = ScaffoldGraph.TOO_FAR
if from_node in self.dists:
if to_node in self.dists[from_node]:
res = self.dists[from_node][to_node] - self.compressed_lens[gf.nor_node(from_node)] - self.compressed_lens[gf.nor_node(to_node)]
res = (self.dists[from_node][to_node] - self.compressed_lens[gf.nor_node(from_node)] - self.compressed_lens[gf.nor_node(to_node)])/2
return res

#Dist from node end to path. Allowed to go not in the first path node, but then additional length in path is added
Expand Down

0 comments on commit 067e20e

Please sign in to comment.