-
Notifications
You must be signed in to change notification settings - Fork 70
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
Setup qcel.models.Molecule with non-contiguous fragments #298
Comments
Ah yes, in the beginning it was requested that fragments be allowed to be noncontiguous. So the good news is that I wrote the hard part (molparse validator) to accommodate. Then we ran into there being zero downstream programs that could actually work with noncontig. I can probably expose |
Thanks for the context, yes I tried testing non-contiguous fragments for a workflow which can work with those robustly, but directly hit a hard-stop. Now I work around by handling the fragment information outside of the qcel models because qcel is still more convenient than rolling my own. |
Ok, I looked a bit more, and it's the molparse internal representation (aka psi's) that works in fragment separators (requires contiguous) rather than fragment lists. Thus, molparse always contiguizes, and So, an Is this xtb that can work with non-contig or a workflow w/o a program in particular? For now, your workaround is probably best. |
I could live with qcel reordering the atoms, just leaving them in their order would be preferred, of course. Generally, the reordering seems like something psi4 should apply as needed, similar as we handle ghost atoms in DFT-D4, qcel / qcng could provide a convenience function for permuting atoms (together with all associated properties). |
There's a PR up @awvwgk , just in case you didn't get pinged. |
Trying the following example molecule from S22, I notice that there is something odd happening for molecules with fragment information:
Output from the run is an unexpected validation error when validating the input
Why are non-contiguous fragments a validation error in qcel? The issue is probably that
throw_reorder
is always true at:QCElemental/qcelemental/molparse/from_schema.py
Line 57 in 292350f
while the default is false at
QCElemental/qcelemental/molparse/from_schema.py
Line 103 in 292350f
but there seems to be no way to toggle
throw_reorder
other than skipping the validation step.The text was updated successfully, but these errors were encountered: