tqdm remote.azure

This commit is contained in:
Casper da Costa-Luis
2019-08-10 14:17:49 +01:00
parent d460d7e668
commit f61e7d86a9
3 changed files with 19 additions and 18 deletions
+5
View File
@@ -40,6 +40,11 @@ class Tqdm(tqdm):
self.set_description(desc, refresh=False)
self.update(n)
def update_to(self, current, total=None):
if total:
self.total = total
self.update(current - self.n)
@classmethod
def truncate(cls, s, max_len=10, end=True, fill="..."):
"""