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 Oct 28, 2024
1 parent 8c62d86 commit 07c216d
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

Check warning on line 144 in src/konnektor/network_planners/generators/heuristic_maximal_network_generator.py

View check run for this annotation

Codecov / codecov/patch

src/konnektor/network_planners/generators/heuristic_maximal_network_generator.py#L144

Added line #L144 was not covered by tests
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 07c216d

Please sign in to comment.