mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
clean output cleaning (meta)
This commit is contained in:
+9
-4
@@ -117,10 +117,15 @@ class Tqdm(tqdm):
|
||||
def close(self):
|
||||
if self.desc_persist is not None:
|
||||
self.set_description_str(self.desc_persist, refresh=False)
|
||||
# remove ETA (either zero or unknown)
|
||||
self.bar_format = self.bar_format.replace("<??:??", "").replace(
|
||||
"<{remaining}", ""
|
||||
)
|
||||
for fmt in [
|
||||
"<??:??", # unknown ETA
|
||||
"<{remaining}", # 00:00 ETA
|
||||
]:
|
||||
self.bar_format = self.bar_format.replace(fmt, "")
|
||||
for fmt in [
|
||||
"|{bar:10}|", # completed progressbar
|
||||
]:
|
||||
self.bar_format = self.bar_format.replace(fmt, " ")
|
||||
super().close()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user