Skip to content

Examples

Run an example from the repository root:

python examples/<category>/<file>.py

Set MPLBACKEND=Agg when running headless. Each example page lists any optional requirements and its Colab notebook.

Forward propagation

Reconstruction

Rays and autodiff

  • 2D ray bending — trace a fan of rays through a smooth speed field.
  • 2D rays autodiff — optimize a neural c(x) field with autodiff through the ray ODE.

Single Gaussian beam diagnostics

Diagnostics

  • Memory planning — compare static MSGB memory estimates with a device budget.