legend-dataflow-scripts

legend-dataflow-scripts is a Python package based on Snakemake for running the LEGEND data production pipeline. It calibrates and optimises hundreds of HPGe detector channels in parallel before building the final analysis-ready data tiers. It takes as input the detector metadata from legend-metadata.

Getting started

It is recommended to install the package using uv.

For a quick development install:

uv pip install ".[docs,test]"

Documentation

Package Overview

Architecture, module descriptions, and dependency overview.

CLI Entry Points (Callables)

All command-line tools provided by the package with descriptions and usage examples.

API Reference

API reference

Development

Developers Guide

How to add new calibration scripts, Snakemake rules, and entry points.