Skip to content
Snippets Groups Projects
Commit 834eafb2 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Sort the files first

parent c42148b1
No related branches found
No related tags found
1 merge request!41Add annotators
...@@ -62,6 +62,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs): ...@@ -62,6 +62,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs):
logger.debug('jobs: %s', jobs) logger.debug('jobs: %s', jobs)
logger.debug('kwargs: %s', kwargs) logger.debug('kwargs: %s', kwargs)
biofiles = database.objects(groups=None, protocol=database.protocol) biofiles = database.objects(groups=None, protocol=database.protocol)
biofiles = sorted(biofiles)
if jobs > 1: if jobs > 1:
start, end = indices(biofiles, jobs) start, end = indices(biofiles, jobs)
biofiles = biofiles[start:end] biofiles = biofiles[start:end]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment