Mercurial > repos > iuc > vsnp_add_zero_coverage
changeset 8:18b59c38017e draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 10077c740e7cbe6a6563a1c632d711691753e46d"
author | iuc |
---|---|
date | Mon, 06 Dec 2021 18:30:02 +0000 |
parents | 6dc6dd4666e3 |
children | 40b97055bb99 |
files | vsnp_build_tables.py vsnp_get_snps.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vsnp_build_tables.py Tue Nov 16 20:10:48 2021 +0000 +++ b/vsnp_build_tables.py Mon Dec 06 18:30:02 2021 +0000 @@ -295,7 +295,7 @@ def set_num_cpus(num_files, processes): - num_cpus = int(multiprocessing.cpu_count()) + num_cpus = len(os.sched_getaffinity(0)) if num_files < num_cpus and num_files < processes: return num_files if num_cpus < processes:
--- a/vsnp_get_snps.py Tue Nov 16 20:10:48 2021 +0000 +++ b/vsnp_get_snps.py Mon Dec 06 18:30:02 2021 +0000 @@ -22,7 +22,7 @@ def set_num_cpus(num_files, processes): - num_cpus = int(multiprocessing.cpu_count()) + num_cpus = len(os.sched_getaffinity(0)) if num_files < num_cpus and num_files < processes: return num_files if num_cpus < processes: