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

Sort the files first

parent c42148b1
Branches
Tags
1 merge request!41Add annotators
......@@ -62,6 +62,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs):
logger.debug('jobs: %s', jobs)
logger.debug('kwargs: %s', kwargs)
biofiles = database.objects(groups=None, protocol=database.protocol)
biofiles = sorted(biofiles)
if jobs > 1:
start, end = indices(biofiles, jobs)
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