Exemplo n.º 1
0
 def test_isowidths(self):
     """check ConstantPeakWidth properties bisowidth, uisowidth.
     """
     from numpy import pi
     cnpw = self.pwconst
     dwpw = DebyeWallerPeakWidth()
     bnds = self._genbonds(1, 2)
     w0 = dwpw.calculate(bnds)
     cnpw.uisowidth = self.tio2stru[[0, -1]].Uisoequiv.mean()
     self.assertAlmostEqual(w0, cnpw.calculate(bnds), 12)
     self.assertAlmostEqual(cnpw.bisowidth, 8 * pi**2 * cnpw.uisowidth, 12)
     return
Exemplo n.º 2
0
 def setUp(self):
     self.pwm = DebyeWallerPeakWidth()
     return