Пример #1
0
class TestLamellarParaCrystal(unittest.TestCase):
    """
    Unit tests for LamellarParaCystal function
    """
    def setUp(self):
        from sas.models.LamellarPCrystalModel import LamellarPCrystalModel
        self.model= LamellarPCrystalModel()
        
    def test1D(self):    
        self.model.setParam("pd_spacing", 0.2)      
        # the values are from Igor pro calculation  
        # the different digits are due to precision of q values  
        self.assertAlmostEqual(self.model.run(0.001), 21829.3, 1)
        self.assertAlmostEqual(self.model.run(0.215268), 0.00487686, 6)
        self.assertAlmostEqual(self.model.runXY(0.414467), 0.00062029, 6)
Пример #2
0
 def setUp(self):
     from sas.models.LamellarPCrystalModel import LamellarPCrystalModel
     self.model = LamellarPCrystalModel()
Пример #3
0
 def setUp(self):
     from sas.models.LamellarPCrystalModel import LamellarPCrystalModel
     self.model= LamellarPCrystalModel()