Skip to content

Commit

Permalink
Collector updates progress after measurement completion
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 18, 2015
1 parent 8718587 commit 7395d9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions holoviews/interface/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,6 @@ def __call__(self, attrtree=Layout(), times=[], strict=False):
(self.fixed, attrtree.fixed) = (False, False)

for i, t in enumerate(np.diff(times)):
if update_progress:
interval_hook.percent_range = (completion[i], completion[i+1])

interval_hook(float(t))

# An empty attrtree buffer stops analysis repeatedly
Expand All @@ -553,6 +550,10 @@ def __call__(self, attrtree=Layout(), times=[], strict=False):
else:
task(attrtree_buffer, self.time_fn(), times)
attrtree.update(attrtree_buffer)
if update_progress:
interval_hook.percent_range = (completion[i],
completion[i+1])
interval_hook(0)

(self.fixed, attrtree.fixed) = (True, True)
return attrtree
Expand Down

0 comments on commit 7395d9a

Please sign in to comment.