Learning path and examples#

The public examples/ directory is the executable half of the documentation. It is tracked by Git and is intended to remain readable, compact, and useful outside the development test suite.

Open the rendered notebook gallery to read the complete code and saved outputs without leaving the documentation site.

Three representations of one workflow#

Most examples appear in three forms. The Quick Start intentionally keeps all three synchronized around the same inputs, sampling, outputs, and plot:

examples/notebooks/

Explanatory, interactive tutorials with plotting code.

examples/configs/

Minimal YAML descriptions of task inputs and outputs.

examples/scripts/

Command-line drivers suitable for workstations or Slurm jobs.

For example, the same isotropic 2PCF can be launched as:

cd examples
python scripts/run_2pcf.py configs/param_2pcf.yaml

or from Python:

from pyhermes.param.parambase import read_param
from pyhermes.theory.corr2pcf import Corr_2PCF

params = read_param(config_path="./configs/param_2pcf.yaml")
result = Corr_2PCF(params).run()

The YAML path values are relative to examples/, so command-line examples run from that directory. Each notebook changes to the same working directory near the top.

Generated directories#

examples/data/ and examples/output/ contain local data and products. Git tracks their .gitkeep placeholders, but not catalogues or task products themselves. Heavy correlation products are generated by the scripts referenced in the corresponding notebooks.

Task guides#