Skip to content
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

Forcebalance fails to read some xyz files containing coordinates in scientific notation #233

Open
mark-mackey-cresset opened this issue Aug 23, 2021 · 2 comments

Comments

@mark-mackey-cresset
Copy link

We get a very occasional failure in ForceBalance when reading xyz files:

exception: Expected coordinates at line 26 but got this instead:
O -0.11704586717873372 0.724057682273424 -5.2981017625329854e-11

It looks like the regexp check in read_xyz0 (around line 2930) gets confused when it encounters a number in scientific notation.

@leeping
Copy link
Owner

leeping commented Aug 23, 2021

Hello Mark,

Thanks for reporting this. You're right, I hadn't expected scientific notation to show up in .xyz files. Can you tell me how this file was written, and could that be changed? I could also change the ForceBalance .xyz reader.

  • Lee-Ping

@mark-mackey-cresset
Copy link
Author

Hi Lee-Ping,

I'm not 100% sure, but I think the .xyz file was written by Psi4 - this is part of a workflow where we are generating custom force field parameters for GAFF/GAFF2 using QM calculations with Psi4.

Regards,
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants