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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/python-ase-3.8.1/ase/calculators/dacapo.py   python-ase(Download)
        else:
            self.loa.SetCartesianPositions(np2num(atoms.get_positions()))
            self.loa.SetUnitCell(np2num(atoms.get_cell()), fix=True)
 
    def get_atoms(self):

src/m/a/matter-0.8-r960-20110308/matter/crystalIO/converters.py   matter(Download)
    import ASE.Atom
    loa = ASE.ListOfAtoms([],periodic=True) 
    loa.SetUnitCell(uc._cellvectors, fix=True)
    for site in uc:
        if makeCartesian:

src/m/a/matter-0.8-r960-20110308/graveyard/converters.py   matter(Download)
def unitCell2ListOfAtom(uc):
    """Utility to convert a UnitCell instance to a ASE ListOfAtom instance."""
 
    loa = ASE.ListOfAtoms([],periodic=True) 
    loa.SetUnitCell(uc._cellvectors, fix=True)