You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stir.BinNormalisation.apply etc can throw exceptions (e.g. when not being able to write to file in the example below). They are currently not caught, see e.g. here, but there are many other places),
leading to python just exiting:
>>> m=sirf.STIR.AcquisitionData('SIRFmultfactors_withatn_3.hs')
>>> asm.set_up(p)
>>> xx=asm.unnormalise(p)
WARNING: write_data: error after writing to stream.
ERROR: ProjDataFromStream::set_viewgram: viewgram (view=0, segment=-11, timing_pos=-5) corrupted due to problems with writing or the scale factor (out of disk space?)
terminate called after throwing an instance of 'std::runtime_error'
what(): ProjDataFromStream::set_viewgram: viewgram (view=0, segment=-11, timing_pos=-5) corrupted due to problems with writing or the scale factor (out of disk space?)
Aborted
$ bash>
Looks like we need to TRY...CATCH stuff around these calls.
The text was updated successfully, but these errors were encountered:
n.set_up(p) is obviously a mistake - should be asm.set_up(p)
error messages are missing in asm.[un]normalise methods of AcquisitionSensitivityModel, which cannot be applied to a read-only object (there are alternative forward/invert methods that return the [un]normalised AcquisitionData object)
stir.BinNormalisation.apply
etc can throw exceptions (e.g. when not being able to write to file in the example below). They are currently not caught, see e.g. here, but there are many other places),leading to python just exiting:
Looks like we need to
TRY...CATCH
stuff around these calls.The text was updated successfully, but these errors were encountered: