Skip to content

Commit

Permalink
enabled STIR file output when save interval is set to >0, fixes #968
Browse files Browse the repository at this point in the history
  • Loading branch information
evgueni-ovtchinnikov committed Jul 2, 2021
1 parent 440bddf commit 699b12c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xSTIR/pSTIR/STIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 699b12c

Please sign in to comment.