[CCPPETMR/SIRF] Python/PET/interactive demos fail on VM (#370)

0 views
Skip to first unread message

evgueni-ovtchinnikov

unread,
Apr 16, 2019, 5:56:00 PM4/16/19
to CCPPETMR/SIRF, Subscribed

The script display_and_projection.py runs ok, but subsequent running of any of the rest fail.

In Spyder (started from shell), running further scripts in the same console produces error messages suggesting that pystir is None, whereas running them in a separate dedicated console produces error message 'name pet is not defined'.

Richard checked that they also fail in IPython run in a terminal, so it is not a Spyder problem.


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

Edoardo Pasca

unread,
Apr 29, 2019, 6:58:35 AM4/29/19
to CCPPETMR/SIRF, Subscribed

There are a few problems here:

  1. the interactive scripts are meant to be executed in a specific order (in spyder) but the order is not so apparent and I suggest to change the name of the file to have 01_display_and_projection.py and so forth
  2. display_and_projection.py does not display any image if run as a whole script. If you run the cells then the images are plotted and everything seems fine.
  3. the scripts redefine slice function
  4. basic_reconstruction.py tries to display the slice 5 which is uniformly 0
  5. in reconstruction.py both acquisition_array and noisy_array have 4D so the display at these lines fail. Other plots fail because of the size of the array passed to imshow

Edoardo Pasca

unread,
May 1, 2019, 11:50:59 AM5/1/19
to CCPPETMR/SIRF, Subscribed

Closed #370 via #374.

Edoardo Pasca

unread,
May 1, 2019, 11:51:48 AM5/1/19
to CCPPETMR/SIRF, Subscribed

According to the README the scripts should be run cell-by-cell.

Reply all
Reply to author
Forward
0 new messages