You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the file the trajectory is written to loses precision:
5
Properties=species:S:1:pos:R:3
H 0.756778 0 -0.522494
H -0.756778 0 -0.538596
O 0 0 0.0668583
O 3.81242 0.395536 -1.76606
C 3.23075 0.109453 -2.69293
The text was updated successfully, but these errors were encountered:
Yes, the XYZ format is only written with ~6 digits of precision. Assuming the positions are in Angstroms, this should be more than enough for MD simulation trajectories.
For now, if you need perfect binary reproducibility, you should use a format that enables it, such as the NetCDF restart format (trajectory = Trajectory("filename.ncrst", "w")).
In the long term we could offer the user to select the precision to use when writing free-form text format such as xyz (but this does not guarantee perfect binary reproducibility) using the not yet implemented metadata for formats mechanism.
This is the position matrix:
It has full precision:
After the position is written to a frame, the frame still has full precision:
But the file the trajectory is written to loses precision:
The text was updated successfully, but these errors were encountered: