def __init__(self, atoms=None, coordinates=None, read=None, molecule=None):
    '\n        Create a trajectory object.\n\n        Parameters\n        ----------\n        atoms : list or None\n            List of elements of the molecule for each frame.\n        coordinates : list or None\n            List of atomic positions of the molecule for each frame.\n        read : str or None\n            File name to read molecule file (formats: xyz).\n        molecule : Molecule\n            Create a Trajectory with 1 frame from a Molecule object.\n\n        '
    self.name = 'Trajectory'
    if ((atoms is not None) and (coordinates is not None)):
        self.atoms = atoms
        self.coordinates = coordinates
    elif (read is not None):
        self.read(read)
    elif (molecule is not None):
        self.atoms = np.array([molecule.atoms])
        self.coordinates = np.array([molecule.coordinates])
        self.name = molecule.name
    else:
        self.atoms = []
        self.coordinates = []
    self.current_frame = 0
Create a trajectory object.

Parameters
----------
atoms : list or None
    List of elements of the molecule for each frame.
coordinates : list or None
    List of atomic positions of the molecule for each frame.
read : str or None
    File name to read molecule file (formats: xyz).
molecule : Molecule
    Create a Trajectory with 1 frame from a Molecule object.
def __init__(self, atoms=None, coordinates=None, read=None, molecule=None):
    '\n        Create a trajectory object.\n\n        Parameters\n        ----------\n        atoms : list or None\n            List of elements of the molecule for each frame.\n        coordinates : list or None\n            List of atomic positions of the molecule for each frame.\n        read : str or None\n            File name to read molecule file (formats: xyz).\n        molecule : Molecule\n            Create a Trajectory with 1 frame from a Molecule object.\n\n        '
    self.name = 'Trajectory'
    if ((atoms is not None) and (coordinates is not None)):
        self.atoms = atoms
        self.coordinates = coordinates
    elif (read is not None):
        self.read(read)
    elif (molecule is not None):
        self.atoms = np.array([molecule.atoms])
        self.coordinates = np.array([molecule.coordinates])
        self.name = molecule.name
    else:
        self.atoms = []
        self.coordinates = []
    self.current_frame = 0