run_non_mp#

montreal_forced_aligner.utils.run_non_mp(function, argument_list, log_directory, return_info=False)[source]#

Similar to run_mp, but no additional processes are used and the jobs are evaluated in sequential order

Parameters:
  • function (Callable) – Multiprocessing function to evaluate

  • argument_list (list) – List of arguments to process

  • log_directory (str) – Directory that all log information from the processes goes to

  • return_info (dict, optional) – If the function returns information, supply the return dict to populate

Returns:

If the function returns information, returns the dictionary it was supplied with

Return type:

dict, optional