Plotting, recipes, models, and solvers
Plotting
- qsospec.plot_line_result(result, output_path=None, ax=None, show_components=True, title=None)[source]
Plot one fitted local line-complex result.
Returns the Matplotlib axes when
output_pathis not provided, otherwise saves the figure and returns the written path.
- qsospec.plot_local_result(result, output_path=None, show_components=True)[source]
Plot all windows from a local fit in stacked panels.
- Parameters:
result (LocalFitResult)
output_path (str | None)
show_components (bool)
Registries
- qsospec.recipes.list_complexes()[source]
- Return type:
Tuple[ComplexRecipe, …]
- qsospec.lines.list()[source]
Return all registered line definitions in wavelength order.
- Return type:
Tuple[LineDefinition, …]
Models and solvers
- qsospec.models.gaussian(wave, amp, center, sigma)[source]
Evaluate
amp * exp(-0.5 * ((wave - center) / sigma)**2).
- qsospec.models.gaussian_partials(wave, amp, center, sigma)[source]
Return dense model derivatives with columns
amp, center, sigma.
- qsospec.models.lorentzian(wave, amp, center, gamma)[source]
Evaluate a peak-normalized Lorentzian profile.
- qsospec.models.lorentzian_partials(wave, amp, center, gamma)[source]
Return dense derivatives with columns
amp, center, gamma.
- qsospec.models.continuum(wave, mode, params, wave_ref, scale)[source]
Evaluate the MVP local continuum model.
- qsospec.models.continuum_partials(wave, mode, wave_ref, scale)[source]
Return dense model derivatives for the local continuum parameters.