pymc icon indicating copy to clipboard operation
pymc copied to clipboard

BUG: new progressar adds empty spaces when progressbar=False

Open velochy opened this issue 10 months ago • 2 comments

Describe the issue:

As I need to sample the posterior on a very large sample of 1M rows, I have batched the operation and run it in groups of 10k To monitor the progress, I put a tqdm progress bar on the bach loop.

This used to behave as expected, but since 5.13.1 this produces the following: image

Reproduceable code example:

import pymc as pm

# Define and sample any model you like into idata

from tqdm import tqdm
with model:   
    for i in tqdm(list(range(10))):
        pm.sample_posterior_predictive(
                    idata,
                    progressbar=False,
                )

Error message:

No response

PyMC version information:

5.13.1

Context for the issue:

No response

velochy avatar Apr 17 '24 11:04 velochy

I think @tomicapretto also noticed that. And he mentioned (?) it's an open issue in the progressbar library

May need an if/else statement somewhere.

ricardoV94 avatar Apr 17 '24 13:04 ricardoV94

@tomicapretto reports this is not yet fixed

ricardoV94 avatar Apr 28 '24 20:04 ricardoV94