SIRF icon indicating copy to clipboard operation
SIRF copied to clipboard

Improve Error Handling & Documentation in ImageDataProcessor

Open samdporter opened this issue 2 years ago • 0 comments

https://github.com/SyneRBI/SIRF/blob/1bb1b111a80f48df5e491a8ee9201715d4e9db42/src/xSTIR/pSTIR/STIR.py#L757C6-L759C27

Documentation for ImageDataProcessor a little light on detail.

It would also be useful to have a more informative error message when the error occurs from code such as

filter = sirf.STIR.TruncateToCylinderProcessor() 
filter.apply(image) 
filtered_image = filter.get_output()

Currently only AttributeError: 'TruncateToCylinderProcessor' object has no attribute 'output'

samdporter avatar Aug 22 '23 09:08 samdporter