specparam.utils.io.load_model

specparam.utils.io.load_model(file_name, file_path=None, regenerate=True)[source]

Load a model file into a model object.

Parameters:
file_namestr or FileObject

File to load the data from.

file_pathPath or str, optional

Path to directory to load from. If None, loads from current directory.

regeneratebool, optional, default: True

Whether to regenerate the model fit from the loaded data, if data is available.

Returns:
modelSpectralModel

Object with the loaded data.