edges_cal.cal_coefficients.CalibrationObservation.new_load

CalibrationObservation.new_load(load_name: str, io_obj: CalibrationObservation, reflection_kwargs: dict | None = None, spec_kwargs: dict | None = None)[source]

Create a new load with the given load name.

Uses files inside the current observation.

Parameters:
  • load_name (str) – The name of the load

  • run_num_spec (dict or int) – Run number to use for the spectrum.

  • run_num_load (dict or int) – Run number to use for the load’s S11.

  • reflection_kwargs (dict) – Keyword arguments to construct the SwitchCorrection.

  • spec_kwargs (dict) – Keyword arguments to construct the LoadSpectrum.