simrunutilsload_param_file_if_path_is_provided

load_param_file_if_path_is_provided

simrun.utils.load_param_file_if_path_is_provided(pathOrParam)

Convenience function to load a parameter file whether it is a string or a dictionary.

Parameters:

pathOrParam (str | dict | NTParameterSet) – The path to the parameter file or the parameter dictionary.

Returns:

The parameter object.

Return type:

NTParameterSet