qens.config¶
Configuration dataclass - runtime parameters for the QENS analysis pipeline.
Holds every tunable knob in one place: file lists, Q range, energy window, binning, MCMC settings and output directory.
Save/restore as JSON for reuse.
- class qens.config.Config(files_to_fit=<factory>, primary_file='', resolution_file=None, frozen_temp_threshold=270, q_min=0.3, q_max=2.5, energy_window=1.25, n_q_bins=12, n_walkers=32, n_warmup=500, n_keep=2000, thin=5, n_map_starts=30, random_seed=42, save_dir='qens_results')[source]¶
Bases:
objectRuntime parameters for the analysis pipeline.
- Parameters:
- files_to_fit¶
Filenames to load (relative to
data_dirpassed toqens.io.load_dataset()).
- resolution_file¶
Frozen-sample file used as resolution function. If None, the loader auto-picks any T ≤
frozen_temp_thresholdincoherent file.- Type:
str | None
- q_min, q_max
Q range in Å⁻¹ over which the fit is performed.
- Type:
- energy_window¶
Half-width of the ω window in meV used for the joint fit (paper found ±1.25 meV needed for benzene anisotropy).
- Type:
- n_warmup, n_keep
Burn-in and production steps per walker.
- Type: