biseqt.util module¶
-
class
biseqt.util.
Logger
(log_level=20, header='', f=None)[source]¶ Bases:
object
Creates an instance of
Logger
with the given verbosity level and optional header.
-
class
biseqt.util.
ProgressIndicator
(f=<open file '<stderr>', mode 'w'>, num_total=None, percentage=False)[source]¶ Bases:
object
Reports progress to the user:
>>> import time >>> indic = ProgressIndicator(num_total=10) >>> indic.start() >>> for i in range(10): ... indic.progress() ... time.sleep(0.1) >>> indic.finish()
-
f
¶ file – An open file to which updates are writen.
-
num_total
¶ int – Total number of expected steps; default is None in which case percentage reporting is not allowed and non-percentage reporting only shows the current count.
-
percentage
¶ bool – Whether to show percentage progress instead of a running count; default is False.
-