Closed hainm closed 5 years ago
>>> class TrajectoryList: ... def __init__(self, trajs): ... self._trajs = trajs ... ... @property ... def top(self): ... # assume all trajs have the same topology ... return self._trajs[0].top ... ... def __iter__(self): ... for frame in chain(self._trajs): ... yield frame >>> data = pt.compute(['rmsd @CA', 'radgyr'], TrajectoryList([traj0, traj1]))
1461