Skip to content

Commit 03bc626

Browse files
Python: use calibration factor in get_detection_efficiency (#177)
Fixes #172
1 parent 7638329 commit 03bc626

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/petsird/helpers/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def get_detection_efficiency(scanner: petsird.ScannerInformation,
124124
# should never happen really, but this way, we don't crash.
125125
return 1.
126126

127-
eff = 1.
127+
eff = (scanner.detection_efficiencies.calibration_factor
128+
if with_calibration_factor else 1.)
128129

129130
# per detection_bin efficiencies
130131
detection_bin_efficiencies = scanner.detection_efficiencies.detection_bin_efficiencies

0 commit comments

Comments
 (0)