respace.ResultSet.set_save_fun#

ResultSet.set_save_fun(res_name: str, save_fun: Callable[[Any, Path | str], Any]) None[source]#

Set the computing funtion for res_name.

Parameters:
res_namestr

Name of the result for which to set the computing function.

save_funSaveFunType

New saving function of res_name to set, taking the result instance and the save path as respectively first and second arguments.