batch_jobs

despasito.utils.parallelization.batch_jobs

batch_jobs(func, inputs, ncores=1, logger=None)[source]

This function will setup and dispatch thermodynamic jobs.

Parameters:
  • func (function) – Function used in job

  • inputs (list) – Each entry of this list contains the input arguments for each job

  • ncores (int, Optional, default=1) – Number of processes used.

  • logger (class, Optional, default=None) – The logger object used.

Returns:

output – This structure contains the outputs of the jobs given

Return type:

tuple