API reference#

Every public name, generated from the docstrings. The table finds an interface by task; the module pages below give every signature.

To

Use

Describe an instrument and a run

pnps.setup.Config, pnps.beams.HE11Beam, pnps.beams.GaussianBeam, pnps.beams.UniformBeam, pnps.extraction.WindowSpec

Choose the beam layout and place the windows

pnps.geometry, pnps.geometry.signal_centre()

Build the grids, masks and operator once

pnps.setup.build_setup()

Simulate one delay point

pnps.simulate.simulate_delay_point()

Scan the delays into a file, sharded and resumable

pnps.scan.run_scan(), pnps.io_h5.merge_shards()

Reuse one solprop engine across delays

pnps.bridge.build_bridge(), pnps.simulate.run_delay_point()

Certify the step size

pnps.calibrate, pnps.calibrate.richardson_table()

Separate what the nonlinearity generated

pnps.simulate.visit_nonlinear()

Separate the transient grating from the arms’ own Kerr light

pnps.separation.Separation, pnps.scan.run_separation_scan()

Integrate a window’s exact hard disc

pnps.exact_windows.exact_window_spectra()

Build the exact hard-disc masks once, for many planes

pnps.exact_windows.ExactWindows

Bound the nonlinear phase of a configuration

pnps.bridge.peak_kerr_rate()

Measure energy by the axial flux

pnps.flux

Inject a measured or simulated pulse

pnps.input_pulse.load_input_pulse(), pnps.input_pulse.centre_pulse(), pnps.input_pulse.spectral_window()

Size the grids

pnps.grids.time_grid(), pnps.grids.space_grid(), pnps.grids.optimal_spatial_grid()

Catch this package’s errors

pnps.exceptions

pnps

Forward model of PNPS (TG-FROG) trace simulation in bulk media, on solprop.