valid_relative_jobs

sofia_redux.toolkit.utilities.multiprocessing.valid_relative_jobs(jobs)[source]

Return a valid number of jobs in the range 1 <= jobs <= max_cores.

Parameters:
jobsint

An positive or negative integer. Negative values are processed as max_cores - jobs + 1.

Returns:
valid_jobsint

The number of jobs available to process.