From f8d1fa678a67da9d561d7e8461892ef6a287175e Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Tue, 10 Sep 2019 16:20:36 +0200 Subject: [PATCH] obi stats: improved display with str instead of bytes --- python/obitools3/commands/stats.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/obitools3/commands/stats.pyx b/python/obitools3/commands/stats.pyx index f9a181d..f40d714 100755 --- a/python/obitools3/commands/stats.pyx +++ b/python/obitools3/commands/stats.pyx @@ -7,6 +7,7 @@ from obitools3.apps.optiongroups import addMinimalInputOption, addTaxonomyOption from obitools3.dms.view import RollbackException from obitools3.apps.config import logger from obitools3.dms.capi.obiview cimport COUNT_COLUMN +from obitools3.utils cimport tostr from functools import reduce import math @@ -248,7 +249,7 @@ def run(config): for i in range(len(sorted_stats)): c = sorted_stats[i][0] for v in c: - print(pcat % str(v)+"\t", end="") + print(pcat % tostr(v)+"\t", end="") for m in config['stats']['minimum']: print((("%%%dd" % lmini[m]) % mini[m][c])+"\t", end="") for m in config['stats']['maximum']: