qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.models.Model. fit_prepare  (   )[source]

Convert the fix states of the parameters into the p0_fixed and bounds parameters of qspec.analyze.curve_fit.

Returns:
(fixed, bounds)tuple[list[fix_type], tuple[float | list[float], float | list[float]]]

A list of bool values specifying which parameters are not varied in a fit and the bounds of the fit parameters.

Raises:
TypeError

If a fix state has an unsupported type.