How to use the gsd.hoomd._HOOMDTrajectoryIterable function in gsd

To help you get started, we’ve selected a few gsd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glotzerlab / gsd / gsd / hoomd.py View on Github external
def __iter__(self):
        """Iterate over HOOMD trajectories."""
        return _HOOMDTrajectoryIterable(self, range(len(self)))
github glotzerlab / gsd / gsd / hoomd.py View on Github external
def __iter__(self):
        return _HOOMDTrajectoryIterable(self._trajectory, self._indices)