Skip to content

Commit

Permalink
Add dummy (invisible) progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjoos committed Apr 5, 2024
1 parent dd6e5bf commit d5cbf5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tracklab/callbacks/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@


class Progressbar(Callback):
def __new__(cls, use_rich=False):
if not use_rich:
def __new__(cls, use_rich=False, dummy=False):
if dummy:
return super().__new__(cls)
elif not use_rich:
return super().__new__(TQDMProgressbar)
else:
return super().__new__(RichProgressbar)
Expand Down

0 comments on commit d5cbf5f

Please sign in to comment.