Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion notebooks/PET/reconstruct_measured_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,16 @@
"# umap.v.hdr is the output converted file\n",
"# Also copy the normalisation header for modification below (using a shorter name).\n",
"!cp $data_path/20170809_NEMA_UCL.n.hdr norm.n.hdr\n",
"!convertSiemensInterfileToSTIR.sh $data_path/20170809_NEMA_MUMAP_UCL.v.hdr umap.v.hdr\n",
"# copy to writeable location (https://github.com/UCL/STIR/issues/1600)\n",
"!cp $data_path/20170809_NEMA_MUMAP_UCL.v.hdr tmp_umap.v.hdr\n",
"!convertSiemensInterfileToSTIR.sh tmp_umap.v.hdr umap.v.hdr\n",
"!rm tmp_umap.v.hdr\n",
"\n",
"# These files will sometimes have lines terminated with CR instead of CRLF, fix this\n",
"# This just means, if we see CR<character> and <character> isn't LF, replace it with CRLF<character>\n",
"!sed -i.bak \"s/\\r\\([^\\n]\\)/\\r\\n\\1/g\" norm.n.hdr\n",
"# copy to working directory (https://github.com/UCL/STIR/issues/1601)\n",
"!cp $data_path/20170809_NEMA_UCL.n .\n",
"!sed -i.bak \"s/\\r\\([^\\n]\\)/\\r\\n\\1/g\" umap.v.hdr\n",
"\n",
"# Now add absolute data path to the header file\n",
Expand Down