コード例 #1
0
ファイル: test_goniometer.py プロジェクト: tomcat333/PyXRD
 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)
コード例 #2
0
ファイル: test_goniometer.py プロジェクト: tomcat333/PyXRD
 def test_t_from_nm_zero(self):
     # boundary condition: 0
     result = get_t_from_nm(0)
     self.assertIsNotNone(result)
     self.assertAlmostEquals(result, 0)
コード例 #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)
コード例 #4
0
ファイル: models.py プロジェクト: mathijs-dumon/PyXRD
 def get_t_from_nm(self, nm):
     """ Converts a nanometer value to a theta position"""
     return get_t_from_nm(nm, wavelength=self.wavelength)
コード例 #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)
コード例 #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)