[CCPPETMR/SIRF] mSTIR: Opening AcqusitionData bad error for "." (#125)

0 views
Skip to first unread message

Richard Brown

unread,
Feb 16, 2018, 1:22:06 PM2/16/18
to CCPPETMR/SIRF, Subscribed

When using mSTIR.AcqusitionData, the code checks for a . in the filename. If there isn't a ., a confusing error is thrown.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

evgueni-ovtchinnikov

unread,
Feb 16, 2018, 1:27:27 PM2/16/18
to CCPPETMR/SIRF, Subscribed

if there is no '.' the argument is interpreted as a scanner name

what error do you get?

Richard Brown

unread,
Feb 16, 2018, 1:31:44 PM2/16/18
to CCPPETMR/SIRF, Subscribed

I accidentally entered the filename without an extension and it threw the error below:

ERROR: construct_proj_data_info: span 1 is too large for a scanner with 0 rings
Error using mUtilities.check_status (line 29)
???
ERROR: construct_proj_data_info: span 1 is too large for a scanner with 0 rings
 exception thrown at line 482 of /Users/rich/Documents/OneDrive-UCL/Code/SIRF/Source/src/xSTIR/cSTIR/cstir.cpp

Error in mSTIR.AcquisitionData (line 93)
            mUtilities.check_status(self.name, self.handle_);

Error in reconstruction (line 10)
randoms  = mSTIR.AcquisitionData(randoms_file);

Richard Brown

unread,
Feb 16, 2018, 1:32:52 PM2/16/18
to CCPPETMR/SIRF, Subscribed

The error is understandable now that you've said that it would be interpreted as a scanner name. However, it might be confusing for a user that makes a silly error (like me).

evgueni-ovtchinnikov

unread,
Feb 16, 2018, 1:36:27 PM2/16/18
to CCPPETMR/SIRF, Subscribed

ok I will make it throw 'unknown scanner' error (I thought STIR would do it, but apparently not)

better still 'unknown scanner or missing file extension'

Richard Brown

unread,
Feb 16, 2018, 1:37:21 PM2/16/18
to CCPPETMR/SIRF, Subscribed

I would say that the latter of the two suggestions is better.

evgueni-ovtchinnikov

unread,
Feb 19, 2018, 11:24:01 AM2/19/18
to CCPPETMR/SIRF, Subscribed

done on devel

evgueni-ovtchinnikov

unread,
Feb 19, 2018, 11:24:02 AM2/19/18
to CCPPETMR/SIRF, Subscribed

Closed #125.

Reply all
Reply to author
Forward
0 new messages