specparam.utils.io.load_time_model

specparam.utils.io.load_time_model(file_name, file_path=None, peak_org=None)[source]

Load a time file into a time 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:
timeSpectralTimeModel

Object with the loaded data.