-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapting the Konnektor behavior to openfe. #84
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #84 +/- ##
==========================================
- Coverage 86.81% 86.76% -0.05%
==========================================
Files 49 49
Lines 1577 1579 +2
==========================================
+ Hits 1369 1370 +1
- Misses 208 209 +1 ☔ View full report in Codecov by Sentry. |
note Mac CI is failing currently everywhere in this Konnektor Repo, and we assume it is an rdkit version issue, if I understood it correctly, right @mikemhenry ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RiesBen this PR seems to be missing tests, is this intentional?
hmmmm... the thing is, the effect of the change was not tested before. I think it would be more beautiful to also test the behaviour here and I will try to add them if I have time. |
added as an issue here so this PR is unblocked. |
@@ -128,6 +128,7 @@ def generate_ligand_network(self, components: Iterable[Component]) -> LigandNetw | |||
else: | |||
try: | |||
best_mapping = next(mapping_generator) | |||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am more concerned that this is considered covered by tests, but the tests did not break when this change was made.
e0c1794
to
07c216d
Compare
To clarify: The prior behavior was to use the first The current behavior takes the first In the case of multiple mappers, but no scorer, I think we should raise a warning. It might be confusing if a user is passing in multiple mappers and thinks both are being used, but it's quietly defaulting to the first mapper. |
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.
07c216d
to
a278319
Compare
This reverts commit e14283a.
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.
this change is a minor adaptation to the old openFE behavior.fixes unit tests.