Commit d76cc9c2 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Handle number of parallel jobs correctly

parent a102df67
......@@ -196,7 +196,9 @@ def main(argv=None):
assert len(biofiles), "biofiles are empty!"
logger.info("number_of_parallel_jobs: %d", number_of_parallel_jobs)
if number_of_parallel_jobs is not None:
number_of_parallel_jobs = int(number_of_parallel_jobs)
logger.info("number_of_parallel_jobs: %d", number_of_parallel_jobs)
if number_of_parallel_jobs > 1:
start, end = indices(biofiles, number_of_parallel_jobs)
biofiles = biofiles[start:end]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment