run_mp#

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

Apply a function for each job in parallel

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

  • argument_list (list) – Arguments for each job

  • 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