From: W. Trevor King Date: Sat, 6 Nov 2010 14:21:20 +0000 (-0700) Subject: Compare theory vs. sim scaled by bin width (not theory, which may be zero). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d905ad0c960de93beaa8515de122c22a6a439c66;p=sawsim.git Compare theory vs. sim scaled by bin width (not theory, which may be zero). --- diff --git a/pysawsim/test/bell_rate.py b/pysawsim/test/bell_rate.py index a49da05..b002a9a 100644 --- a/pysawsim/test/bell_rate.py +++ b/pysawsim/test/bell_rate.py @@ -179,7 +179,8 @@ def bell_rate(sawsim_runner, num_domains=1, unfolding_rate=1, sim_alpha = params[0] sim_rho = abs(params[1]) for s,t,n in [(sim_alpha, alpha, 'alpha'), (sim_rho, rho, 'rho')]: - assert (s - t)/t < 0.1, 'simulation %s = %g != %g = %s' % (n,s,t,n)) + assert (s - t)/w < 2, ( + 'simulation %s = %g != %g = %s (bin width = %g)' % (n,s,t,n,w)) return sim.residual(theory)