Fitting

The fitting subsystem is split into four parts: the iminuit-backed FitEngine that minimises any f(t, **params) -> array callable; the MODELS registry of standalone time-domain models with explicit baselines (one-shot Python use); the CompositeModel builder that parses arithmetic expressions over the COMPONENTS registry into a compiled callable (the canonical path for any non-trivial muSR model, mirroring the GUI Edit… dialog); and the parameter_models package that fits extracted fit parameters as a function of field, temperature, or run number with the same machinery. Superconducting models live under asymmetry.core.fitting.sc and are surfaced through both the composite registry and the parameter-trending registry — the physics context is in Superconducting penetration depth models. Symbols, units, and physical descriptions for every fit parameter are sourced from the PARAM_INFO_REGISTRY, which is canonical: GUI labels, GLE export labels, and the autodoc parameter tables all derive from it.

Frequency-domain peak fitting reuses the same engine and composite-model path. The spectral helper module supplies the default Fourier-spectrum peak model, MHz/G conversion, and derived field parameters for trend tables.