# HG changeset patch # User iuc # Date 1638815322 0 # Node ID 6fdfdee72f8acb754d6b3f7a1ff9bea789e8daa3 # Parent 9ac0b1d5560de248b063376efc2866dc1c0c7411 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsnp commit 10077c740e7cbe6a6563a1c632d711691753e46d" diff -r 9ac0b1d5560d -r 6fdfdee72f8a vsnp_build_tables.py --- a/vsnp_build_tables.py Tue Nov 16 20:11:30 2021 +0000 +++ b/vsnp_build_tables.py Mon Dec 06 18:28:42 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: diff -r 9ac0b1d5560d -r 6fdfdee72f8a vsnp_get_snps.py --- a/vsnp_get_snps.py Tue Nov 16 20:11:30 2021 +0000 +++ b/vsnp_get_snps.py Mon Dec 06 18:28:42 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: