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

All Samples(13)  |  Call(8)  |  Derive(0)  |  Import(5)

src/m/a/matter-0.8-r960-20110308/examples/antiquated/storeStructure.py   matter(Download)
db.autocommit(True)
 
from matter.orm.Atom import Atom
from matter.orm.Lattice import Lattice
from matter.orm.Structure import Structure
 
 
at1 = Atom('C', [0.333333333333333, 0.666666666666667, 0])
at1.id = 'at1'
db.insertRow(at1)
db.commit()
 
at2 = Atom('C', [0.666666666666667, 0.333333333333333, 0])

src/m/a/matter-0.8-r960-20110308/examples/storeStructureObject.py   matter(Download)
orm = OrmManager(db)
 
from matter.orm.Atom import Atom
from matter.orm.Lattice import Lattice
from matter.orm.Structure import Structure
 
at1 = Atom('C', [0.333333333333333, 0.666666666666667, 0])
at1.id = 'at1'
 
at2 = Atom('C', [0.666666666666667, 0.333333333333333, 0])

src/m/a/matter-0.8-r960-20110308/examples/antiquated/storeAtom.py   matter(Download)
 
# create Atom
from matter.orm.Atom import Atom
 
db.createTable(Atom)
a1 = Atom()

src/m/a/matter-0.8-r960-20110308/examples/storeAtomObject.py   matter(Download)
 
# create Atom
from matter.orm.Atom import Atom
a1 = Atom()
a1.id = 'a1'

src/m/a/matter-0.8-r960-20110308/tests/TestStructureOrm.py   matter(Download)
 
from matter.orm.Structure import Structure
from matter.orm.Atom import Atom
from matter.orm.Lattice import  Lattice
 
    def test_dsaworm(self):
        'Structure: dsaw orm'
        Fe57 = Atom( 'Fe', mass=57 )
        Al = Atom( 'Al' )
        atoms = [Fe57, Al]