From 699b12ceb2e8d74d804c2a3620875d8a969a7843 Mon Sep 17 00:00:00 2001 From: Evgueni Ovtchinnikov Date: Fri, 2 Jul 2021 17:18:41 +0100 Subject: [PATCH] enabled STIR file output when save interval is set to >0, fixes #968 --- src/xSTIR/pSTIR/STIR.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xSTIR/pSTIR/STIR.py b/src/xSTIR/pSTIR/STIR.py index ef0fe1b02..fa08876b8 100644 --- a/src/xSTIR/pSTIR/STIR.py +++ b/src/xSTIR/pSTIR/STIR.py @@ -2433,6 +2433,10 @@ def set_save_interval(self, n): Defines how often to save image iterates (n = 1: on each subiteration, n = 2: every other subiteration etc.) """ + if n > 0: + self.enable_output() + else: + self.disable_output() parms.set_int_par( self.handle, 'IterativeReconstruction', 'save_interval', n) # def set_inter_iteration_filter_interval(self, n):