SyneRBI / SIRF-Exercises

SIRF Training and demonstration material
http://www.ccpsynerbi.ac.uk
Apache License 2.0
17 stars 21 forks source link

download_data.sh on the STFC cloud #179

Open KrisThielemans opened 2 years ago

KrisThielemans commented 2 years ago

I don't think download_data.sh can currently pick up data from the /mnt folder.

~/SIRF-Exercises/scripts/download_data.sh -w ~/SIRF-Exercises/working_dir -D /mnt/materials/SIRF/Fully3D/SIRF/ -p
Destination is "/home/jovyan/SIRF-Exercises/data"
Download location is "/mnt/materials/SIRF/Fully3D/SIRF/"
Downloading PET data
/mnt/materials/SIRF/Fully3D/SIRF ~/SIRF-Exercises
Downloading UCL NEMA_IQ data
rm: cannot remove 'NEMA_IQ.zip.md5': Read-only file system
some error occurred. Retry

This is because https://github.com/SyneRBI/SIRF-Exercises/blob/7ee39512583f4d48f830c24a10f3fb8a0bfd4da7/scripts/download_data.sh#L140

KrisThielemans commented 2 years ago

I see that the following env variables exist on my instance

SIRF_INSTALL_PATH=/opt/SIRF-SuperBuild/INSTALL
SIRF_PATH=/opt/SIRF-SuperBuild/sources/SIRF
SIRF_EXERCISES_DATA_PATH=/mnt/materials/SIRF/Fully3D/SIRF/

The first is used by examples_data_path (and therefore makes SIRF_PATH unused). The latter seems nowhere used.

KrisThielemans commented 1 year ago

Not sure if this still applies, but flagging it up