Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(1)  |  Import(0)

src/m/d/MDAnalysis-0.8.1/MDAnalysis/core/AtomGroup.py   MDAnalysis(Download)
    coords = numpy.vstack([a.coordinates() for a in args])
    trajectory = MDAnalysis.coordinates.base.Reader()
    ts = MDAnalysis.coordinates.base.Timestep(coords)
    setattr(trajectory, "ts", ts)
    trajectory.numframes = 1

src/m/d/MDAnalysis-0.8.1/MDAnalysis/coordinates/xdrfile/core.py   MDAnalysis(Download)
class Timestep(base.Timestep):
    """Timestep for a Gromacs trajectory."""
    def __init__(self, arg, **kwargs):
        DIM = libxdrfile2.DIM    # compiled-in dimension (most likely 3)
        if numpy.dtype(type(arg)) == numpy.dtype(int):