specparam.utils.io.load_event_model¶
- specparam.utils.io.load_event_model(file_name, file_path=None, peak_org=None)[source]¶
Load an event file into an event model object.
- Parameters:
- file_namestr
File to load data data.
- file_pathPath or str, optional
Path to directory to load from. If None, loads from current directory.
- peak_orgint or Bands, optional
How to organize peaks. If int, extracts the first n peaks. If Bands, extracts peaks based on band definitions.
- Returns:
- eventSpectralTimeEventModel
Object with the loaded data.