pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.66k stars 2k forks source link

Add refresh call to progress bar in apply_function_over_dataset #7343

Closed fonnesbeck closed 4 months ago

fonnesbeck commented 4 months ago

Description

compute_log_likelihood typically runs so quickly that the progress bar does not update and sits at 0% at the end of the calculation. This adds a refresh call to the progress bar after iteration so that it finishes at 100%.

Related Issue

Checklist

Type of change


📚 Documentation preview 📚: https://pymc--7343.org.readthedocs.build/en/7343/

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.37%. Comparing base (508a134) to head (92e252d). Report is 113 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pymc-devs/pymc/pull/7343/graphs/tree.svg?width=650&height=150&src=pr&token=JFuXtOJ4Cb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)](https://app.codecov.io/gh/pymc-devs/pymc/pull/7343?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) ```diff @@ Coverage Diff @@ ## main #7343 +/- ## ======================================= Coverage 92.37% 92.37% ======================================= Files 102 102 Lines 17208 17209 +1 ======================================= + Hits 15896 15897 +1 Misses 1312 1312 ``` | [Files with missing lines](https://app.codecov.io/gh/pymc-devs/pymc/pull/7343?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) | Coverage Δ | | |---|---|---| | [pymc/backends/arviz.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7343?src=pr&el=tree&filepath=pymc%2Fbackends%2Farviz.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9iYWNrZW5kcy9hcnZpei5weQ==) | `96.61% <100.00%> (+0.01%)` | :arrow_up: |