From d20e21f39f599e067751494238388cf668172a3e Mon Sep 17 00:00:00 2001 From: kashyapchhatbar Date: Wed, 8 Jul 2015 14:31:59 +0100 Subject: [PATCH] Fixed issue in displaying bar if very less common reads (<100) --- clashchimeras/find.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clashchimeras/find.py b/clashchimeras/find.py index db258c9..c434d34 100644 --- a/clashchimeras/find.py +++ b/clashchimeras/find.py @@ -161,6 +161,8 @@ def main(): logger.info('Determining chimeras') updateInterval = int(len(common)/100) + if updateInterval < 100: + updateInterval = 1 pbar = Bar(width=80, max=100, fill=yellow(u"█"), suffix="%(percent)d%% - %(eta)ds")