Skip to content

Commit

Permalink
Turned off tqdm thread monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
matllubos committed Nov 19, 2021
1 parent 6eea8fd commit 244c4c9
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions chamber/utils/tqdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ def write(self, msg):
self._out.write(msg, ending='')


def tqdm(*args, **kwargs):
file = kwargs.pop('file', None)
if file and isinstance(file, OutputWrapper):
file = CommandOutputTMDQWrapper(file)

return original_tqdm(
*args,
file=file,
ncols=100,
**kwargs
)
class tqdm(original_tqdm):

monitor_interval = 0

def __init__(self, *args, **kwargs):
file = kwargs.pop('file', None)
if file and isinstance(file, OutputWrapper):
file = CommandOutputTMDQWrapper(file)
super().__init__(
*args,
file=file,
ncols=100,
**kwargs,
)

0 comments on commit 244c4c9

Please sign in to comment.