latform Documentation

latform is a Bmad lattice parser/formatter tool for parsing, formatting, analyzing, and comparing particle accelerator lattice files.

Installation

pip install latform

For development:

pip install -e ".[test]"

Quick Start

Format a lattice file and print to stdout:

latform my_lattice.bmad

Format in-place:

latform -i my_lattice.bmad

Preview what the formatter would change:

latform --diff my_lattice.bmad

Tools

latform provides these CLI commands:

Documentation