[SyneRBI/SIRF-Exercises] notebook: `reconstruc_measured_data` does not work if the data is not in the working directory (Issue #260)

0 views
Skip to first unread message

Edoardo Pasca

unread,
Jul 3, 2025, 4:48:33 AM7/3/25
to SyneRBI/SIRF-Exercises, Subscribed
paskino created an issue (SyneRBI/SIRF-Exercises#260)

On the STFC cloud the data is available in a read-only filesystem.

The processing works fine if the data is processed in the working directory, but in this case it isn't.

Two fixes need to be made in the cell processing the files:

# Now add absolute data path to the header file
# This command prepends the data path to the data file so that the header in our working folder points to the data
# You won't need to do this for your own data if the data file is in the same directory.
!sed -i.bak2 -e "s#\(!name of data file:=\)#\\1{data_path}/#" umap.v.hdr
# due to https://github.com/UCL/STIR/issues/1601 we copy the data to the working directory which is 
# the same as where the header lives
! cp $data_path/20170809_NEMA_UCL.n .
# !sed -i.bak2 -e "s#\(!name of data file:=\)#\\1{data_path}/#" norm.n.hdr

related issues


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <SyneRBI/SIRF-Exercises/issues/260@github.com>

Kris Thielemans

unread,
Mar 26, 2026, 7:35:34 AM (12 days ago) Mar 26
to SyneRBI/SIRF-Exercises, Subscribed

Closed #260 as completed via #261.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <SyneRBI/SIRF-Exercises/issue/260/issue_event/23929197961@github.com>

Reply all
Reply to author
Forward
0 new messages