Configuration reference

All configuration objects are immutable dataclasses. Construct a new object for each scientific choice; run bundles hash the complete configuration.

Common presets

Default global fit:

global_config = qsospec.GlobalContinuumConfig()

Lyα-safe continuum windows:

global_config = qsospec.GlobalContinuumConfig.lya_safe()

Automatic single/broken power-law selection:

global_config = qsospec.GlobalContinuumConfig(
    power_law=qsospec.PowerLawConfig(mode="auto")
)

The broken law is selected only with adequate wavelength leverage on both sides of 4661 Å and a default BIC improvement of at least 10.

Known foreground E(B-V):

extinction = qsospec.GalacticExtinctionConfig(ebv_override=0.035)

Continuum-only validation:

result = qsospec.fit_global_lines(
    spectrum,
    global_config=global_config,
    complexes=[],
)

Configuration objects

Exact fields, types, defaults, and validation are generated from the current package:

The generated pages are grouped in Configuration API.

Selection precedence

  • Explicit caller configuration is preserved.

  • If no global configuration is supplied and Lyα is fit-eligible, the Lyα-safe continuum preset is selected automatically.

  • complexes=None means all covered auto-enabled recipes.

  • complexes=[] means continuum only.

  • Host decomposition and Galactic extinction are controlled independently.

See Preprocessing order for workflow order.