From e34ae2916cb99546018987ba5c9590cb95b2c3ff Mon Sep 17 00:00:00 2001 From: Evgueni Ovtchinnikov Date: Wed, 25 Oct 2023 13:38:25 +0000 Subject: [PATCH] added missing STIR version check in unnormalise, fixes #1216 --- src/xSTIR/cSTIR/stir_x.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xSTIR/cSTIR/stir_x.cpp b/src/xSTIR/cSTIR/stir_x.cpp index 9e4b18aac..2e39e262c 100644 --- a/src/xSTIR/cSTIR/stir_x.cpp +++ b/src/xSTIR/cSTIR/stir_x.cpp @@ -410,7 +410,11 @@ void PETAcquisitionSensitivityModel::unnormalise(STIRAcquisitionData& ad) const { BinNormalisation* norm = norm_.get(); +#if STIR_VERSION < 050000 norm->undo(*ad.data(), 0, 1); +#else + norm->undo(*ad.data()); +#endif } void