def test_invalidTrajFormat(self): options = FakeOptions() options.efficiencyofile = "effs.txt" options.trajformat = "inv" options.pbfile = "step.prb" options.configfilename = "stepreject.conf" options.expbfile = "expbursts.bst" self.assertRaises(ValueError, runMCFRET, options)
def test_trajFormat(self): options = FakeOptions() options.efficiencyofile = "effs.txt" options.trajformat = "dat" options.pbfile = "step.prb" options.configfilename = "stepreject.conf" options.expbfile = "expbursts.bst" runMCFRET(options) self.assertAlmostEqual(numpy.loadtxt("effs.txt").mean(), 0.5, delta = 0.05)