Ejemplo n.º 1
0
 def test_t_from_nm_negative(self):
     # boundary condition: negative
     result = get_t_from_nm(-0.716)
     self.assertIsNotNone(result)
     self.assertAlmostEquals(result, -6.17588983)
Ejemplo n.º 2
0
 def test_t_from_nm_zero(self):
     # boundary condition: 0
     result = get_t_from_nm(0)
     self.assertIsNotNone(result)
     self.assertAlmostEquals(result, 0)
Ejemplo n.º 3
0
 def get_t_from_nm(self, nm):
     """ Converts a nanometer value to a theta position"""
     return get_t_from_nm(nm, wavelength=self.wavelength)
Ejemplo n.º 4
0
 def get_t_from_nm(self, nm):
     """ Converts a nanometer value to a theta position"""
     return get_t_from_nm(nm, wavelength=self.wavelength)
Ejemplo n.º 5
0
 def test_t_from_nm_negative(self):
     # boundary condition: negative
     result = get_t_from_nm(-0.716)
     self.assertIsNotNone(result)
     self.assertAlmostEquals(result, -6.17588983)
Ejemplo n.º 6
0
 def test_t_from_nm_zero(self):
     # boundary condition: 0
     result = get_t_from_nm(0)
     self.assertIsNotNone(result)
     self.assertAlmostEquals(result, 0)