biophysics_fittingutilsexecute_in_child_process_kept_alive

execute_in_child_process_kept_alive

biophysics_fitting.utils.execute_in_child_process_kept_alive(fun)

Execute a function in a child process, keeping the process alive.

This function serializes the function and its arguments, and runs it in a separate process using multiprocessing.

Parameters:

fun (function) – The function to execute.