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

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

src/m/a/matter-0.8-r960-20110308/tests/TestSymmetryUtilities.py   matter(Download)
from matter.SpaceGroups import GetSpaceGroup
from matter.SymmetryUtilities import *
from matter.SymmetryUtilities import _Position2Tuple
 
# useful variables
    def setUp(self):
        self.eps = 1.0e-4
        self.pos2tuple = _Position2Tuple(self.eps)
        return
 
    def test___init__(self):
        """check _Position2Tuple.__init__()
        """
        self.assertNotEqual(0.0, self.pos2tuple.eps)
        self.pos2tuple = _Position2Tuple(1.0/sys.maxint/2)