Skip to content

Commit

Permalink
Add progressbar defaults to BlockedStep ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegrabowski committed Jan 8, 2025
1 parent 4506020 commit 3db028d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pymc/step_methods/compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ def __new__(cls, *args, **kwargs):
step.__newargs = (vars, *args), kwargs
return step

@staticmethod
def _progressbar_config(n_chains=1):
columns = []
stats = {}

return columns, stats

@staticmethod
def _make_update_stats_function():
def update_stats(stats, step_stats, chain_idx):
return stats

return update_stats

# Hack for creating the class correctly when unpickling.
def __getnewargs_ex__(self):
return self.__newargs
Expand Down

0 comments on commit 3db028d

Please sign in to comment.