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

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/m/d/MDAnalysis-0.8.1/MDAnalysis/core/AtomGroup.py   MDAnalysis(Download)
        coords = self.universe.trajectory.ts._pos[self.indices()]
        if not inplace:
            return MDAnalysis.core.distances.applyPBC(coords, box)
 
        self.universe.trajectory.ts._pos[self.indices()] = MDAnalysis.core.distances.applyPBC(coords, box)

src/m/d/MDAnalysisTests-0.8.1/MDAnalysisTests/test_distances.py   MDAnalysisTests(Download)
    def test_ortho_PBC(self):
        from MDAnalysis.core.distances import applyPBC
        U = MDAnalysis.Universe(PSF, DCD)
        atoms = U.atoms.coordinates()
        box1 = np.array([2.5, 2.5, 3.5], dtype=np.float32)
        box2 = np.array([2.5, 2.5, 3.5, 90., 90., 90.], dtype=np.float32) 
 
        cyth1 = applyPBC(atoms, box1)
        cyth2 = applyPBC(atoms, box2)
    def test_tric_PBC(self):
        from MDAnalysis.core.distances import applyPBC
        U = MDAnalysis.Universe(TRIC)
        atoms = U.atoms.coordinates()
        box1 = U.dimensions
            return coords
 
        cyth1 = applyPBC(atoms, box1)
        cyth2 = applyPBC(atoms, box2)
        reference = numpy_PBC(atoms, box2)