calamari.fitting.models.MODELS#

calamari.fitting.models.MODELS: dict[str, ModelDefinition] = {'bent_cable': ModelDefinition(name='bent_cable', function=<function bent_cable>, param_names=('x_break', 'y_break', 'slope_below', 'slope_change', 'gamma'), param_defaults={'x_break': 0.0, 'y_break': 0.0, 'slope_below': 1.0, 'slope_change': 1.0, 'gamma': 1.0}, description="Two straight lines joined by a parabolic bend of half-width gamma: y_break + slope_below*(x - x_break) + slope_change*q(x), with q = (x - x_break + gamma)^2/(4 gamma) inside the bend. The bent cable (Chiu, Lockhart & Routledge, J. Am. Stat. Assoc. 101, 542 (2006)); segmented_linear at gamma = 0. Seeded from the segmented_linear profile, gamma at two sample spacings. See calamari.fitting.fit_breakpoint(model='bent_cable').", guess=<function _bent_cable_guess>), 'brillouin': ModelDefinition(name='brillouin', function=<function brillouin>, param_names=('M_s', 'g', 'J', 'T_K'), param_defaults={'M_s': 1.0, 'g': 2.0, 'J': 0.5, 'T_K': 2.0}, description='Brillouin-function magnetisation M_s * B_J(g J mu_B H / k_B T), CGS argument (H in Oe). Standard single-ion paramagnet form (Blundell Eq. 2.34); g, J, T_K normally fixed by the caller.', guess=None), 'curie_weiss': ModelDefinition(name='curie_weiss', function=<function curie_weiss>, param_names=('C', 'theta', 'chi0'), param_defaults={'C': 1.0, 'theta': 0.0, 'chi0': 0.0}, description='Curie-Weiss susceptibility C/(T - theta) + chi0. Standard mean-field paramagnet law; theta is the Weiss temperature, C the Curie constant, chi0 a temperature-independent background.', guess=<function _curie_weiss_guess>), 'inverse_curie_weiss': ModelDefinition(name='inverse_curie_weiss', function=<function inverse_curie_weiss>, param_names=('C', 'theta'), param_defaults={'C': 1.0, 'theta': 0.0}, description='Inverse Curie-Weiss law (T - theta)/C for chi^-1 vs T straight-line fits; slope 1/C, x-intercept theta.', guess=None), 'linear': ModelDefinition(name='linear', function=<function linear>, param_names=('slope', 'intercept'), param_defaults={'slope': 1.0, 'intercept': 0.0}, description='Straight line slope*x + intercept (baselines, high-field slopes).', guess=None), 'segmented_linear': ModelDefinition(name='segmented_linear', function=<function segmented_linear>, param_names=('x_break', 'y_break', 'slope_below', 'slope_change'), param_defaults={'x_break': 0.0, 'y_break': 0.0, 'slope_below': 1.0, 'slope_change': 1.0}, description='Two straight lines meeting at a sharp corner: y_break + slope_below*(x - x_break) + slope_change*max(0, x - x_break). Continuous two-phase regression (Hinkley, Biometrika 56, 495 (1969)); seeded from an exact least-squares profile over the sample positions. See calamari.fitting.fit_breakpoint for the comparison against no break.', guess=<function _segmented_linear_guess>)}#

Name-keyed registry of every known model. Populated at import with the built-ins below; extend it via register_model() (never by mutating this dict directly, so the duplicate-name guard always runs).