edges_io.io.Spectrum.from_load#
- classmethod Spectrum.from_load(load: str, direc: str | Path, run_num: int | None = None, filetype: str | None = None) list[_SpectrumOrResistance] #
Initialize the object in a simple way.
- Parameters:
load – The load name (eg. ‘Ambient’, ‘HotLoad’) or its alias (eg. ‘ambient’, ‘hot_load’).
direc – The directory in which to search for relevant data
run_num – The run number of the data to use. Default, the last run. Each run is independent and different run_nums may be used for different loads.
filetype – The filetype of the data. Must be one of the supported formats. Defaults to _default_filetype.