Skip to content
Snippets Groups Projects
Commit b4d22042 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

Bugfix: typo in filtering out intermediate drug nodes

Former-commit-id: 88ba575f
parent 4caea240
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ def scores_to_results( ...@@ -45,7 +45,7 @@ def scores_to_results(
drug_in_path = False drug_in_path = False
for vertex in vertices: for vertex in vertices:
if g.vertex_properties["type"][int(vertex)] == "Drug" and vertex != candidate: if g.vertex_properties["type"][int(vertex)] == "drug" and vertex != candidate:
drug_in_path = True drug_in_path = True
break break
if drug_in_path: if drug_in_path:
...@@ -67,7 +67,7 @@ def scores_to_results( ...@@ -67,7 +67,7 @@ def scores_to_results(
drug_in_path = False drug_in_path = False
for vertex in vertices: for vertex in vertices:
if g.vertex_properties["type"][int(vertex)] == "Drug" and vertex != candidate: if g.vertex_properties["type"][int(vertex)] == "drug" and vertex != candidate:
drug_in_path = True drug_in_path = True
break break
if drug_in_path: if drug_in_path:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment