Skip to content

Commit

Permalink
fix extraneous prints to match expected downstream parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Dec 19, 2023
1 parent b36d302 commit 75c2d2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scripts/remove_crosslink_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,11 @@ def check_side(start, checked_sides, graph_edges):
check_side('>' + node, checked_sides, graph_edges)
check_side('<' + node, checked_sides, graph_edges)

for pair in forbidden_connections:
sys.stderr.write("removed connection: " + str(pair) + "\n")

for pathstr in all_paths:
path = pathstr.replace('>', '\t>').replace('<', '\t<').strip().split('\t')
if len(path) == 0: continue
key = canontip(path[0], revnode(path[-1]))
if key not in forbidden_connections:
print(pathstr)
else:
sys.stderr.write("forbade " + pathstr + "\n")
sys.stderr.write(pathstr + "\n")

0 comments on commit 75c2d2c

Please sign in to comment.