Coding examples#

Each gallery contains runnable Python scripts and their outputs. Start with a small example, then follow the interpretation gallery to connect numerical results to physical conclusions. Measure requests use Measure members; result names and table column names remain strings such as "Qsca".

Single particle

Scattering properties, fields, polarization, and detector coupling.

Single Module
Parameter sweeps

Explore wavelength, diameter, material, and detector grids.

Experiment Module
Inverse fitting

Fit bounded parameters to scalar or unit-bearing measurements.

Inverse Problems
Interpret results

Understand resonances, angular scattering, and fit residuals.

Interpreting scattering results
Validation

Compare with reference results and physical consistency checks.

Validation Examples
Benchmarks

Measure runtime and memory use for reproducible studies.

Benchmarks
Extras

Explore detector weights, mode profiles, and additional plots.

Extra Examples