Skip to content

Commit

Permalink
adapting the Konnektor behavior to openfe.
Browse files Browse the repository at this point in the history
 if no scorer is provided to the max network planners, the std. behavior is to take the first possible mapping and be done. It used to use the last possible mapping.
  • Loading branch information
RiesBen authored and atravitz committed Nov 19, 2024
1 parent dfbb156 commit a278319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def generate_ligand_network(self, components: Iterable[Component]) -> LigandNetw
else:
try:
best_mapping = next(mapping_generator)
break
except:
continue
if best_mapping is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def generate_ligand_network(self, components: Iterable[Component]) -> LigandNetw
else:
try:
best_mapping = next(mapping_generator)
break
except:
print("warning")
continue
Expand Down

0 comments on commit a278319

Please sign in to comment.