Skip to content

main⚓︎

Command-line interface for PET (Python Ensemble Toolbox).

This CLI does not run simulations itself -- forward simulators and cost functions are user-supplied Python code and must be wired up in a driver script (see the PIPT/POPT tutorials). Instead, it covers the parts of a PET workflow that are purely about configuration files:

pet validate CONFIG          check a config file for missing/invalid keys
pet convert CONFIG --to FMT  convert a legacy .pipt/.popt file to toml/yaml
pet migrate CONFIG           update a config file to the current schema
pet version                  print the installed PET version

build_parser() ⚓︎

The pet argument parser: validate, convert, migrate, version.

main(argv=None) ⚓︎

Entry point of the pet command; returns the exit code.