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
How to turn a non-periodic structure into a periodic structure in a few simple steps, going from StructureData to TrajectoryData and back again
In [92]: s=StructureData(cell=None, pbc=(False, False, False))
In [93]: s.append_atom(position=[0.0, 0.0, 0.0], symbols='H')
In [94]: t=TrajectoryData(structurelist=(s,))
In [95]: t.get_step_structure(0).pbcOut[95]: (True, True, True)
trying to store such a transformed structure leads to sadness (predictably)
---->1t.get_step_structure(0).store()
~/atmospec/aiida-core/src/aiida/orm/nodes/node.pyinstore(self)
522self._validate_storability()
-->523self._validate()
524~/atmospec/aiida-core/src/aiida/orm/nodes/data/structure.pyin_validate(self)
920-->921_validate_dimensionality(self.pbc, self.cell)
922~/atmospec/aiida-core/src/aiida/orm/nodes/data/structure.pyin_validate_dimensionality(pbc, cell)
2458ifdim['value'] ==0:
->2459raiseValueError(f'Structure has periodicity {pbc} but {dim["dim"]}-d volume 0.')
Looking at the code, it seems like TrajectoryData does not track periodicity information at all, which is a bad news for everything except 3D-periodic structures.
This is currently a big issue for my app, since I am using TrajectoryData extensively to store molecular conformers.
TrajectoryData does not track PBC, and so when we
extract StructureData from it, it will have the default
pbc=(True, True,True). Solution is simple, overwrite this.
See:
aiidateam/aiida-core#6376
TrajectoryData does not track PBC, and so when we
extract StructureData from it, it will have the default
pbc=(True, True,True). Solution is simple, overwrite this.
See:
aiidateam/aiida-core#6376
How to turn a non-periodic structure into a periodic structure in a few simple steps, going from StructureData to TrajectoryData and back again
trying to store such a transformed structure leads to sadness (predictably)
Looking at the code, it seems like TrajectoryData does not track periodicity information at all, which is a bad news for everything except 3D-periodic structures.
This is currently a big issue for my app, since I am using TrajectoryData extensively to store molecular conformers.
cc @mbercx
The text was updated successfully, but these errors were encountered: