pyfli.simulator.irf_sim.tof_sim#
Convert a sample height/topology offset into an equivalent time-of-flight shift, in units of IRF time bins, for the simulator workflow.
This module belongs to pyfli.simulator.irf_sim and is part of PyFLI synthetic
FLI/FLIM data generation, hardware noise modeling, calibration, and validation tools.
Public API includes classes ToFSim.
Classes
|
Converts a physical height offset (mm) into the equivalent time-of-flight delay (ns) via the vacuum speed of light, then into an integer number of IRF time bins to |
- class ToFSim(T=12.5, num_bins=256)[source]#
Bases:
objectConverts a physical height offset (mm) into the equivalent time-of-flight delay (ns) via the vacuum speed of light, then into an integer number of IRF time bins to
np.rollan IRF trace by.A positive height is treated as being closer to the detector — a shorter one-way path length, so photons arrive faster (negative delay, negative roll); a negative height is farther away (positive delay, positive roll).
- Parameters:
T (
float) – Laser period, in nanoseconds (matchesIRFGenerator).num_bins (
int) – Number of time bins spanning one laser period.
- height_to_time(height_mm)[source]#
Converts a height offset (mm) to a time-of-flight delay (ns). Positive height (closer to the detector) yields a negative delay.
- sample_shift(height_range_mm=(-10.0, 10.0))[source]#
Draws a height offset from
height_range_mm, converts it to a time-of-flight delay viaheight_to_time(), and converts that delay to an integer number ofgate_delay-sized bins.