respace.ResultSet.load#

ResultSet.load(res_name: str, params: Mapping[str, Hashable] | None = None, save_path: str | Path | None = None, save_path_fmt: str | Path | None = None) Any[source]#

Load the value of result res_name for set of parameters params.

Will use the load_fun attribute of that result.

Parameters:
res_namestr

Name of the result to load.

paramsParamsSingleValue, optional

Dictionary of parameters for which to load the result. Needs to be specified if save_path is not, to fill in a save path format.

save_pathPath | str | None, optional

Path from which to load the result.

save_path_fmtPath | str | None, optional

Format for the path where to load the result. If not set, will be the result’s default save_path_fmt, or, if not set, the global ResultSet.save_path_fmt.

Returns:
result valueAny
Raises:
ValueError

When neither save_path nor params was specified.