Trajectory(path, mode='r', format='')¶
Open the file at the given
pathusing the given
modeand optional file
Valid modes are
'w'for write and
formatparameter is needed when the file format does not match the extension, or when there is not standard extension for this format. If format is an empty string, the format will be guessed from the file extension.
UnitCellwill be used when reading and writing the files, replacing any unit cell in the frames or files.
The new topology will be used when reading and writing the files, replacing any topology in the frames or files.
topologyparameter is a
Topologyinstance, it is used directly. If the
topologyparameter is a string, the first
Frameof the corresponding file is read, and the topology of this frame is used.
When reading from a file, if
formatis not the empty string, it is used as the file format instead of guessing it from the file extension.