New progress bar

This commit is contained in:
2019-06-17 17:30:51 +02:00
parent 3552f14b81
commit 70b05e8637
7 changed files with 70 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
import logging
from progress_bar import progress
from formatter import OutFormatter, OutNoStatFormatter, AllFormatter, StatsFormatter
@@ -122,7 +123,7 @@ class Writer:
fp = fp_open()
self.write_header(fp)
for s in structures:
for s in progress(structures, "writing:{}".format(self.formatter)):
if self.multiple_output:
fp = fp_open(s.id)
self.write_header(fp)