openforcefield / openff-qcsubmit

Automated tools for submitting molecules to QCFractal
https://openff-qcsubmit.readthedocs.io/en/latest/index.html
MIT License
26 stars 4 forks source link

Improve compatibility with non-Psi4 engines #206

Closed mattwthompson closed 1 year ago

mattwthompson commented 1 year ago

Description

The current logic makes it difficult to use QC packages supported by QCEngine besides Psi4. This updates the logic to not assume that the program argument is in the settings dictionary.

Todos

Notable points that this PR has either accomplished or will accomplish.

Questions

Status

mattwthompson commented 1 year ago

The docs builds were broken because an old QCPortal was being brought in, somehow. 6553fc4183b21ac63bdb2af733eefa7a33587cfd should fix that, but there might be other issues.

mattwthompson commented 1 year ago

The change in 7e4d0911fb1dbc0a065bf4759821c0dd3e4a990f is a fairly naive way of getting tests to pass, but if I understand the change correctly it's in line with the intended changes; I think that previously the supported methods were implied by the keys in the settings and anything not recognized produced an error. The point of this change is to allow unrecognized methods through - presumably letting some errors pass through if users are using methods outside of the scope of current QCSubmit usage.

(I'm maybe 80% sure I'm using the right jargon here - method/program/settings/etc. - please correct me if I'm mistaken!)

jthorton commented 1 year ago

The point of this change is to allow unrecognized methods through

Almost but its programs, the test was checking if an error was raised if an unsupported program of QCEngine was supplied. It should have probably been checking with qcengine if the program is supported but this will also limit the programs to only those supported in the main version and not ones supplied via plugins, but that might be the best we can do for now.