Skip to content

Commit

Permalink
Merge pull request #3 from NicoleJurjew/exposeMaskMethodsForScatter_b…
Browse files Browse the repository at this point in the history
…ugfix

Expose mask methods for scatter to Python
  • Loading branch information
KrisThielemans authored Nov 22, 2024
2 parents 0ab15f2 + 4900588 commit 94405cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/xSTIR/pSTIR/STIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -3608,6 +3608,15 @@ def set_attenuation_correction_factors(self, arg):
assert_validity(arg, AcquisitionData)
parms.set_parameter(self.handle, self.name, 'setAttenuationCorrectionFactors', arg.handle)

def set_mask_image(self, image):
assert_validity(image, ImageData)
parms.set_parameter(self.handle, self.name, 'setMaskImage', image.handle)

def set_mask_acq_data(self, arg):
assert_validity(arg, AcquisitionData)
parms.set_parameter(self.handle, self.name, 'setMaskAcqData', arg.handle)


def set_input(self, acq_data):
assert_validity(acq_data, AcquisitionData)
parms.set_parameter(self.handle, self.name, 'setInput', acq_data.handle)
Expand Down

0 comments on commit 94405cb

Please sign in to comment.