dfm / emcee

The Python ensemble sampling toolkit for affine-invariant MCMC
https://emcee.readthedocs.io
MIT License
1.48k stars 431 forks source link

Typo in ensemble.py Metropolis-Hastings code path #35

Closed farr closed 12 years ago

farr commented 12 years ago

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

             q = mh_proposal(p)
farr commented 12 years ago

I just generated a pull request with the above commit in it, in case that is easier.