pyfli.simulator.sim_helper#

Provide sim helper tools for PyFLI synthetic FLI/FLIM data generation, hardware noise modeling, calibration, and validation tools.

This module belongs to pyfli.simulator and is part of PyFLI synthetic FLI/FLIM data generation, hardware noise modeling, calibration, and validation tools. Public API includes functions irf_picker().

Functions

irf_picker(irf_full[, px])

Run the IRF picker routine.

irf_picker(irf_full, px=None)[source]#

Run the IRF picker routine.

Parameters:
  • irf_full (np.ndarray) – Full instrument response function sampled over the decay window.

  • px (tuple[int, int] | None) – Explicit (x, y) pixel to use when irf_full is 3-D, instead of picking one at random. Ignored when irf_full is 1-D.

Returns:

The selected IRF array, and the (x, y) pixel it came from — the given px if one was passed, the randomly chosen pixel otherwise, or None when irf_full is 1-D (there’s no pixel to report).

Return type:

tuple[np.ndarray, tuple[int, int] | None]