ooragan.Fitter#

class ooragan.Fitter(data: Dataset | File, savepath: PathLike | None = None)[source]#

Fitting object. Takes the raw data as input and acts as a container for the fit results.

See also

This object is a wrapper of Daniel Flanigan’s resonator library.

Parameters:
dataDataset or File

Data containing objects.

savepathstr, optional

Where to create the “fit_results” and “fit_images” directories to save the fit results and images. The default is the current working directory.

Methods

fit([files, background, fit_method, ...])

Fitting specified resonator data.

fit_qtls_model([files])

Fits the internal losses \(\delta_i\) to the theoretical model for TLS losses \(\delta_\mathrm{TLS}\) and other power-independent losses \(\delta_\mathrm{other}\).

__getitem__(-> ~ooragan.fitting.FitResult)

Returns the FitResult(s) with the given index (or indices).