STP mode computes TIA from a single activity image (T == 1) using:
TIA = A(t) / lambda_eff
Enable STP with:
single_time:
enabled: trueUses physical decay:
lambda_eff = ln(2) / physics.half_life_seconds
physics:
half_life_seconds: 21600.0
single_time:
enabled: true
method: physUses effective half-life:
lambda_eff = ln(2) / single_time.haenscheid_eff_half_life_seconds- Fallback:
physics.half_life_secondsif STP effective half-life isnull
physics:
half_life_seconds: 21600.0
single_time:
enabled: true
method: haenscheid
haenscheid_eff_half_life_seconds: 14400.0Two sub-modes:
- Global half-life
- Label-map driven half-life
Global example:
single_time:
enabled: true
method: prior_half_life
half_life_seconds: 10800.0Label-map example:
single_time:
enabled: true
method: prior_half_life
label_map_path: organs.nii.gz
half_life_seconds: 10800.0
label_half_lives:
"1": 1800.0
"2": 3600.0
"3": 5400.0label_half_lives keys must be integer-like labels.
pytia validate --config config_stp.yaml
pytia run --config config_stp.yamlPython API:
from pytia import run_tia
result = run_tia(
images=["activity_single.nii.gz"],
times=[0.0],
config="config_stp.yaml",
)NIfTI outputs:
tia.nii.gzmodel_id.nii.gzstatus_id.nii.gzr2.nii.gz(typically NaN in STP)sigma_tia.nii.gz(typically NaN in STP)
Summary YAML fields include:
pytia_versionstatus_legend+status_countsmodel_legend+model_counts
Status IDs are shared with multi-timepoint mode:
0: outside mask/background1: ok2: not applicable (<2 valid pointslegend; in STP this often indicates invalid effective decay input)3: fit failed4: all points below noise floor5: nonphysical parameters
Check method-specific half-life inputs:
physneedsphysics.half_life_secondshaenscheidneedshaenscheid_eff_half_life_secondsor fallback physical half-lifeprior_half_lifeglobal mode needssingle_time.half_life_seconds
Relax or disable noise_floor for debugging:
noise_floor:
enabled: falseConfirm single_time.method and inspect model_id.nii.gz:
101phys102haenscheid/hanscheid103prior/prior_half_life
- Full config reference:
CONFIG.md - General usage:
USER_GUIDE.md - Runtime architecture:
ARCHITECTURE.md