Skip to content

Commit

Permalink
fixed bug where progress bar didn't update properly (#369)
Browse files Browse the repository at this point in the history
* fixed bug where progress bar didn't update properly

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
PolarBean and pre-commit-ci[bot] authored Aug 23, 2024
1 parent de8d41c commit 8606c53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions brainglobe_atlasapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ def retrieve_over_http(
fout.write(chunk)
adv = len(chunk)
completed += adv
progress.update(
task_id, completed=min(completed, tot), refresh=True
)
progress.update(task_id, completed=min(completed, tot))

if fn_update:
# update handler with completed and total bytes
Expand Down

0 comments on commit 8606c53

Please sign in to comment.