Exemple #1
0
 def test_gauss(self):
   yscale, ignore, ignore=get_scaling(self.ref2, self.ref1, polynom=0)
   self.assertAlmostEqual(yscale, 1., places=3)
Exemple #2
0
 def test_degrees(self):
   yscale, ignore, ignore=get_scaling(self.ref2, self.ref1, polynom=2)
   for i in range(3, 8):
     yscale2, ignore, ignore=get_scaling(self.ref2, self.ref1, polynom=i)
     self.assertAlmostEqual(yscale, yscale2, places=3)
Exemple #3
0
 def test_linear(self):
   yscale, ignore, ignore=get_scaling(self.ref2, self.ref1, polynom=2)
   self.assertAlmostEqual(yscale, 1., places=3)
   self.ref2.R/=2
   yscale, ignore, ignore=get_scaling(self.ref2, self.ref1, polynom=2)
   self.assertAlmostEqual(yscale, 2., places=3)