-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cartesian.get_zmat() fails #102
Comments
Further investigation shows that the problem goes away if all of the coordinates in the xyz file have an explicit |
Thank you for the bug report and the already found solution. I am pretty sure that this would not have been a problem some time ago.
I always write my own xyz files with explicit floats, but the library should be either permissive or give better error messages. PS:
Probably it is already sufficient if one entry per column has the explicit dot, isn't it? |
Yes. It's pretty unlikely that you will get an xyz with no '.' (except hand written like mine) but it could happen if written from python str(). |
fixed in #103 |
* Explicitly cast position values read from .xyz files to floats as some contained integer values. Now, positions read from .xyz files are guaranteed to be read as floats. * Added test for .xyz files with integer position values * make use of simpler pandas indexing in test --------- Co-authored-by: nwhel <[email protected]>
Code Sample, a copy-pastable example if possible
Problem description
It crashes while trying to take the square root of a numpy array:
Expected Output
Output of
cc.show_versions()
chemcoord: 2.1.2
numpy: 1.26.4
pandas: 2.2.2
numba: 0.60.0
sortedcontainers: 2.4.0
sympy: 1.12.1
pytest: None
pip: 24.0
setuptools: 70.1.1
IPython: 8.26.0
sphinx: None
The text was updated successfully, but these errors were encountered: