Closed tjjarvinen closed 4 months ago
I'll take a look. In my opinion keeping pbc=[F, F, F]
but omitting the infinite lattice would be the best option, since this would then encode the open bounday conditions explictly rather than implicitly, but I don't remember right now if this is possible with the upstream extxyz
library.
Could you take a look at #48? The test is not passing because of a unit conversion problem when comparing the read-in infinite lattice with the original one - if either @tjjarvinen or @mfherbst could advise on what I am doing wrong there that would be much appreciated.
If you create isolated molecule with AtomsBase and save it using ExtXYZ and try to load the file
Here is a Working example:
The saved file reads
If you remove the lattice and pbc information from the file, then it works as intended.
So, one fix would be to check, if structure has infinite bounding box, and if yes then just remove cell information from the save.