Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
6br committed Jul 26, 2020
1 parent e014b73 commit 9beafb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matrixcomponent/PangenomeSchematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ def write_rdf(schematic, ontology_output_path):
if len(link.participants):
link_counter = link_counter + 1
olink = olink_dict[link_counter]
assert link.upstream in obin_dict == link.downstream in obin_dict
assert link.upstream in obin_dict == link.downstream in obin_dict, "upstream: {0}, downstream {1}".format(link.upstream, link.downstream)

if link.upstream in obin_dict:
from_bin = obin_dict[link.upstream]
olink.departure = from_bin.ns_term()

if link.downstream in obin_dict:
to_bin = obin_dict[link.downstream]
if lin_k.downstream in obin_dict:
tobin = obin_dict[link.downstream]
olink.arrival = to_bin.ns_term()

olink.paths = [schematic.path_names[k] for k in link.participants]
Expand Down

0 comments on commit 9beafb3

Please sign in to comment.