The following patch fixes a typo (self._getlnprob --> self._get_lnprob) in the branch of code taken for a Metropolis-Hastings proposal function in ensemble.py.
From c6782d3d621a47cb8a630209ac08d21f4abcdcfd Mon Sep 17 00:00:00 2001
From: Will Meierjurgen Farr wmfarr@gmail.com
Date: Tue, 18 Sep 2012 22:45:09 -0500
Subject: [PATCH] Fixed typo bug in Metropolis-Hastings part of ensemble.py
diff --git a/emcee/ensemble.py b/emcee/ensemble.py
index bc7777c..361f029 100644
--- a/emcee/ensemble.py
+++ b/emcee/ensemble.py
@@ -199,7 +199,7 @@ class EnsembleSampler(Sampler):
if mh_proposal is not None:
Draw proposed positions & evaluate lnprob there
q = mh_proposal(p)
newlnp, blob = self._getlnprob(q)
newlnp, blob = self._get_lnprob(q)
# Accept if newlnp is better; and ...
acc = (newlnp > lnprob)
The following patch fixes a typo (self._getlnprob --> self._get_lnprob) in the branch of code taken for a Metropolis-Hastings proposal function in ensemble.py.
From c6782d3d621a47cb8a630209ac08d21f4abcdcfd Mon Sep 17 00:00:00 2001 From: Will Meierjurgen Farr wmfarr@gmail.com Date: Tue, 18 Sep 2012 22:45:09 -0500 Subject: [PATCH] Fixed typo bug in Metropolis-Hastings part of ensemble.py
emcee/ensemble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emcee/ensemble.py b/emcee/ensemble.py index bc7777c..361f029 100644 --- a/emcee/ensemble.py +++ b/emcee/ensemble.py @@ -199,7 +199,7 @@ class EnsembleSampler(Sampler): if mh_proposal is not None:
Draw proposed positions & evaluate lnprob there
1.7.9.6 (Apple Git-31.1)