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

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

src/m/a/matter-0.8-r960-20110308/matter/crystalIO/converters.py   matter(Download)
        print "P4Vasp could not be imported in Python."
    struct = Structure()
    struct.basis = [p4mat.Vector(v.tolist()) for v in uc.getCellVectors()]
    #struct.positions = [p4mat.Vector(v.tolist()) for v in uc.getPositions()]
    # setup a dictionary of species index
    struct.comment = comment
    for site in uc:
        pos = p4mat.Vector(site.getPosition().tolist())
        atomtype = (site.getAtom().symbol, site.getAtom().mass)
        speciesindex = indexdict[atomtype]