From 2dc7fcceac697ea3070e8eb547c329c238d9f6f1 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Fri, 10 Aug 2018 10:39:46 +0200 Subject: [PATCH] Minor fixes --- python/obitools3/commands/head.pyx | 2 +- python/obitools3/commands/sort.pyx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python/obitools3/commands/head.pyx b/python/obitools3/commands/head.pyx index 43d4723..9eb40e2 100644 --- a/python/obitools3/commands/head.pyx +++ b/python/obitools3/commands/head.pyx @@ -63,7 +63,7 @@ def run(config): # Create output view with the line selection try: - o_view = selection.materialize(output_view_name, comments="obi head: "+str(config['head']['count'])+"\n") + o_view = selection.materialize(output_view_name, comments="obi head: "+str(len(selection))+"\n") except Exception, e: raise RollbackException("obi head error, rollbacking view: "+str(e), o_view) diff --git a/python/obitools3/commands/sort.pyx b/python/obitools3/commands/sort.pyx index eb6085d..1dc4a13 100644 --- a/python/obitools3/commands/sort.pyx +++ b/python/obitools3/commands/sort.pyx @@ -4,9 +4,8 @@ from obitools3.apps.progress cimport ProgressBar # @UnresolvedImport from obitools3.dms import DMS from obitools3.dms.view.view cimport View, Line_selection from obitools3.uri.decode import open_uri -from obitools3.apps.optiongroups import addMinimalInputOption, addTaxonomyInputOption, addMinimalOutputOption +from obitools3.apps.optiongroups import addMinimalInputOption, addMinimalOutputOption from obitools3.dms.view import RollbackException -from functools import reduce from obitools3.apps.config import logger from obitools3.dms.capi.obitypes cimport OBI_BOOL, \ OBI_CHAR, \ @@ -86,7 +85,7 @@ def run(config): output_view_name = uri[0] # Initialize the progress bar - pb = ProgressBar(len(i_view), config, seconde=5) # TODO + pb = ProgressBar(len(i_view), config, seconde=5) keys = config['sort']['keys']