Minor fixes
This commit is contained in:
@ -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)
|
||||
|
||||
|
@ -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']
|
||||
|
||||
|
Reference in New Issue
Block a user