dalya / Sequencer

An algorithm that detects one-dimensional sequences in complex datasets
MIT License
118 stars 21 forks source link

added ability to specify number of cores for multiprocessing #1

Closed vedantchandra closed 4 years ago

vedantchandra commented 4 years ago

If to_use_parallelization is True, the user now has the option to specify num_cores. By default, num_cores is None, which defaults to the currently expected behaviour of using multiprocessing.cpu_count().

This change is motivated by the fact that on HPC clusters, cpu_count() may return more cores than the user is allocated.