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']