def test_ticker(self): """check PairQuantity.ticker() """ from diffpy.srreal.eventticker import EventTicker et0 = EventTicker(self.pq.ticker()) self.pq.rmax = 3.77 et1 = self.pq.ticker() self.assertNotEqual(et0, et1) self.failUnless(et0 < et1) return
def test_ticker(self): """check PeakProfile.ticker() """ from diffpy.srreal.eventticker import EventTicker et0 = EventTicker(self.pkgauss.ticker()) self.pkgauss.peakprecision = 0.003 et1 = self.pkgauss.ticker() self.assertNotEqual(et0, et1) self.failUnless(et0 < et1) return
def test_ticker(self): """check PeakWidthModel.ticker() """ from diffpy.srreal.eventticker import EventTicker et0 = EventTicker(self.pwconst.ticker()) self.pwconst.width = 3 et1 = self.pwconst.ticker() self.assertNotEqual(et0, et1) self.failUnless(et0 < et1) return
def test_ticker(self): """check ScatteringFactorTable.ticker() """ from diffpy.srreal.eventticker import EventTicker et0 = EventTicker(self.sftx.ticker()) self.sftx.setCustomAs('D', 'H') et1 = self.sftx.ticker() self.assertNotEqual(et0, et1) self.assertTrue(et0 < et1) return