diff --git a/notebooks/PET/reconstruct_measured_data.ipynb b/notebooks/PET/reconstruct_measured_data.ipynb index 510c2c7..5626a72 100644 --- a/notebooks/PET/reconstruct_measured_data.ipynb +++ b/notebooks/PET/reconstruct_measured_data.ipynb @@ -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 and isn't LF, replace it with CRLF\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",