diff --git a/gstools/random/rng.py b/gstools/random/rng.py index 5b740f7c..d8fe298d 100644 --- a/gstools/random/rng.py +++ b/gstools/random/rng.py @@ -78,6 +78,8 @@ def sample_ln_pdf( sample_size = burn_in else: sample_size = max(burn_in, (size / nwalkers) * oversampling_factor) + # sample_size needs to be integer for emcee >= 3.1 + sample_size = int(sample_size) # initial guess init_guess = ( self.random.rand(nwalkers).reshape((nwalkers, 1)) * sample_around