specparam.io.models.load_model¶
- specparam.io.models.load_model(file_name, file_path=None, regenerate=True)[source]¶
Load a SpectralModel object from file.
- Parameters:
- file_namestr
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
Loaded model object with data from file.