Getting started

This page provides a short roadmap for new users before diving into the more detailed reference sections.

Two main workflows

BESTA currently supports two complementary analysis modes:

  • Sampler-based pipeline fitting with besta.pipeline.MainPipeline.

    Use this when you need flexible forward modelling and continuous parameter inference, especially for spectroscopy or joint fits with nuisance parameters.

  • Grid-based inference with besta.grid.grid.GridFitter.

    Use this when you already have a finite model library and want high-throughput, repeatable inference over many objects.

Minimal pipeline example

The smallest CosmoSIS-based run usually contains:

  • a runtime section selecting the samplers,

  • an output section selecting the results filename,

  • a pipeline section pointing to the active module and values file, and

  • one module-specific section such as FullSpectralFit.

The complete structure is documented in Configuring BESTA, and a full orchestration example is given in Pipeline Manager.

Tutorial material

The repository includes worked examples under tutorials/. In particular:

  • tutorials/fit_sdss_spectra demonstrates an end-to-end spectral fit,

  • tutorials/fit_redshift contains redshift-oriented examples.

These tutorials complement the API reference by showing how the values file, input spectra, LSF information, and post-processing tools fit together in a single workflow.

Where to go next

  • For available fitting modules, see Pipeline Modules.

  • For API-level details, see API Reference.

  • For contributing fixes or documentation improvements, see the contributing page.