itasc.contact_analysis.frame_interval¶
Resolve a position’s frame interval (seconds per frame).
The time twin of pixel_size. Track dynamics needs the real elapsed time
between frames to turn pixel displacements into µm/s, MSD into µm²/s, and lags
into seconds. Backend-only (no Qt / napari) so the standalone wheel and headless
batch runs can use it. Two sources are consulted, in order:
The position’s
itasc_config.json—metadata.time_interval_s— the key the main pipeline widget already writes (main_widget.py).The label TIFF’s ImageJ
fintervaltag (seconds between frames), the convention ImageJ/Fiji writes for time-lapse stacks.
Returns None when neither yields a positive value; callers treat that as
“interval unknown” (the dynamics build is then blocked until one is set).
Functions
|
Seconds/frame for a position, from its config first, then the TIFF tag. |
|
|
|
Seconds/frame from a TIFF's ImageJ |
- itasc.contact_analysis.frame_interval.resolve_time_interval_s(position_dir, label_path)[source]¶
Seconds/frame for a position, from its config first, then the TIFF tag.
Returns
Nonewhen no positive interval can be found.