예제 #1
0
 def test_conversion(self):
     """ Should calculate a FWHM pulse width from the HWIeM value. """
     sech = Sech(width=100.0)
     fwhm = sech.calculate_fwhm()
     self.assertEqual(fwhm, 176.2747174039086)
예제 #2
0
파일: test_sech.py 프로젝트: LeiDai/pyofss
 def test_conversion(self):
     """ Should calculate a FWHM pulse width from the HWIeM value. """
     sech = Sech(width=100.0)
     fwhm = sech.calculate_fwhm()
     self.assertEqual(fwhm, 176.2747174039086)