dfm/emcee — pull request #33 by aconley314 (2012-07-25 18:49:18+00:00)
Title: Modified to run under python3.

I modified emcee to run under both python3 and python2. There are three types of changes:

* Importing the print function from future and replacing
all print blah statements with print(blah)
* Setting a py_ver3 flag in the initialization of Sampler
and Ensemble and then using that as a switch to chose
between xrange (py 2.x) and range (py 3.x).
* In ensemble.get_lnprob(), wrapping the call to Map (or
the thread-pool aware version) in list( ) so as to get a
vector back rather than a generator.

The tests all pass under python 2.7 and python 3.2, and all examples seem to work as expected except subprocess (which I have not tried). Note that this includes a multithreaded option (rosenbrock), which produces the same results as the master branch version.