Skip to content

Commit 095d448

Browse files
committed
remove the method in favor of function
1 parent e67acdc commit 095d448

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pymc/util.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,6 @@ def _initialize_tasks(self):
857857
for chain_idx in range(self.chains)
858858
]
859859

860-
def compute_draw_speed(self, chain_idx, draws):
861-
elapsed = self._progress.tasks[chain_idx].elapsed
862-
return compute_draw_speed(elapsed, draws)
863-
864860
def update(self, chain_idx, is_last, draw, tuning, stats):
865861
if not self._show_progress:
866862
return
@@ -870,7 +866,8 @@ def update(self, chain_idx, is_last, draw, tuning, stats):
870866
draw = self.completed_draws
871867
chain_idx = 0
872868

873-
speed, unit = self.compute_draw_speed(chain_idx, draw)
869+
elapsed = self._progress.tasks[chain_idx].elapsed
870+
speed, unit = compute_draw_speed(elapsed, draw)
874871

875872
if not tuning and stats and stats[0].get("diverging"):
876873
self.divergences += 1

0 commit comments

Comments
 (0)