-
Notifications
You must be signed in to change notification settings - Fork 93
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
Refactor OpenEye checks to only warn if installed and unlicensed #1426
Conversation
The matrix of options here looks great. |
This is great! I think we've talked about this for a year now, so it is great to see it implemented. My only thought is this case:
This strikes me as a warning could be helpful, since this seems like the case where a user has licensed openeye, but forgot to install it. |
I agree, "were my conformers generated with Omega / is AM1-BCC being run with QUACPAC or There are other ways to check what's installed and actually used ( |
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 love this change, the Toolkit has tonnes of warnings at the moment and it's nice to reduce that. I've found a couple of blocking changes where the errors are not rendered correctly, and one or two ideas of simplifications.
The first thing I thought when I saw this PR is that we should document how to check which toolkits are available. I think "Optional dependencies (toolkits)" section of the installation guide is a natural place for this - maybe something like:
All available toolkits are automatically registered in the
`GLOBAL_TOOLKIT_REGISTRY`. The available toolkits and their
versions can be inspected through the `registered_toolkit_versions`
dictionary:
```python
from openff.toolkit import GLOBAL_TOOLKIT_REGISTRY
print(GLOBAL_TOOLKIT_REGISTRY.registered_toolkit_versions)
```
Co-authored-by: Josh A. Mitchell <yoshanuikabundi@gmail.com>
Thanks everybody for the feedback! |
Closes #1425 and possibly other issues
The result of high-level imports, i.e.
from openff.toolkit import Molecule
, for the cases of OpenEye Toolkits being installed and/or licensed are as follows:Said warning, for various cases of
oechem
not finding the environment variable or file:More thoroughly, showing
openeye-toolkits
is installed andOE_LICENSE
is set but file does not existopeneye-toolkits
is installed andOE_LICENSE
is not setopeneye-toolkits
is not installed and license is not set upopeneye-toolkits
is not installed and license is set up properlyThis covers everything I can think of.