get_core_number

sofia_redux.toolkit.utilities.multiprocessing.get_core_number(cores=True)[source]

Returns the maximum number of CPU cores available

Parameters:
coresbool or int, optional

If False, returns 1. If True, returns the maximum number of cores available. An integer specifies an upper limit on the maximum number of cores to return

Returns:
coresint

The maximum number of cores to use for parallel processing