Commit 236cc632 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix problems with doctests

parent 78819ad8
......@@ -98,6 +98,7 @@ pygments_style = 'sphinx'
# doctest
doctest_global_setup = open("pyenv.py").read()
doctest_global_setup += "os.chdir('%s')\n" % os.getcwd()
# Options for HTML outputs
# -----------------------
......
......@@ -5,6 +5,7 @@ if sys.version_info < (3,):
else:
unicode = str
import os
from matplotlib import rc
from matplotlib import rcParams
......
......@@ -110,21 +110,21 @@ for directed in [True, False]:
for i, c in enumerate(cs):
if c != "gibbs":
mcmc_args=dict(beta=1, c=c, niter=200, allow_vacate=True)
mcmc_args=dict(beta=1, c=c, niter=2000, allow_vacate=True)
else:
mcmc_args=dict(beta=1, niter=200, allow_vacate=True)
mcmc_args=dict(beta=1, niter=2000, allow_vacate=True)
if i == 0:
mcmc_equilibrate(state,
mcmc_args=mcmc_args,
gibbs=c=="gibbs",
nbreaks=25,
wait=1000,
nbreaks=5,
wait=100,
verbose=(1, "c = %s (t) " % str(c)) if verbose else False)
hists[c] = mcmc_equilibrate(state,
mcmc_args=mcmc_args,
gibbs=c=="gibbs",
wait=4000 if directed else 2000,
nbreaks=25,
wait=200 if directed else 100,
nbreaks=5,
verbose=(1, "c = %s " % str(c)) if verbose else False,
history=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment