skultrafast.single_spectrum

Module Contents

Classes

class skultrafast.single_spectrum.SingleSpec(frequency, signal, unit_freq='nm', unit_signal='OD')[source]
subtract_const(region: tuple)[source]

Subtracts a constant background. The background is calculated by taking the mean signal in the designated region.

Parameters:

region (tuple of two floats) – The borders of the region.

cut(region, invert_sel=True)[source]

Cuts part of the spectrum away.

Parameters:
  • region (tuple of floats) – Defines the region to be cutted away.

  • invert_sel (bool) – If True, the cutted region is inverted.

Returns:

Cut spectra.

Return type:

SingleSpec

fit_single_gauss(start_params=None, back_deg=2, peak_region=None)[source]
class skultrafast.single_spectrum.SingleSpecPlotter(single_spec: SingleSpec)[source]
spec(remove_back=True, ax=None)[source]