willvousden / ptemcee

A parallel-tempered version of emcee.
MIT License
57 stars 29 forks source link

Integer division results in no adaptation #10

Open cdcapano opened 5 years ago

cdcapano commented 5 years ago

When decay and kappa are calculated in _get_ladder_adjustment in (lines 180 and 181 in ensemble.py), a division with integers is performed. Since decay is always less than 1, this results in decay and kappa always being zero if you're not using python 3. The result is the betas are never changed.

This fixes that by importing division from future in ensemble.py.