-
Notifications
You must be signed in to change notification settings - Fork 19
Added missing test_oracle_solubility_eval
#13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |||||
| formula_eval, | ||||||
| functional_group_eval, | ||||||
| oracle_rxn_eval, | ||||||
| oracle_solubility_eval, | ||||||
| product_eval, | ||||||
| rxn_eval, | ||||||
| str_eval, | ||||||
|
|
@@ -273,6 +274,98 @@ def test_functional_group_eval(yhat: str, y: str, expected: float) -> None: | |||||
| ), f"Reason for failure: {metadata}" | ||||||
|
|
||||||
|
|
||||||
| @pytest.mark.parametrize( | ||||||
|
||||||
| ("yhat", "y", "expected"), | ||||||
| [ | ||||||
| pytest.param( | ||||||
| "c1c(O)nc2ccc(CN)cc2c1OC1CCCC1", | ||||||
| '("scaffold", "c1ccc2c(OC3CCCC3)ccnc2c1", -3.844724178314209, "increase")', | ||||||
| 1.0, | ||||||
| id="match-scaffold", | ||||||
| ), | ||||||
| pytest.param( | ||||||
| "Oc1c(O)nc2ccc(C[NH3])cc2c1OC1CCCC1O", | ||||||
| '("scaffold", "c1ccc2c(OC3CCCC3)ccnc2c1", -3.844724178314209, "decrease")', | ||||||
| 0.0, | ||||||
| id="match-scaffold-bad-solubility", | ||||||
| ), | ||||||
| pytest.param( | ||||||
| "CCCCCC=CCCCN(C)CCC", | ||||||
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 | ||||||
|
||||||
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 | |
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 |
Uh oh!
There was an error while loading. Please reload this page.