ptemcee icon indicating copy to clipboard operation
ptemcee copied to clipboard

Integer division results in no adaptation

Open cdcapano opened this issue 6 years ago • 0 comments

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.

cdcapano avatar Jan 10 '19 13:01 cdcapano