Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find challenge data #24

Closed
mehrhardt opened this issue Jun 28, 2024 · 5 comments
Closed

can't find challenge data #24

mehrhardt opened this issue Jun 28, 2024 · 5 comments
Assignees
Labels
data documentation Improvements or additions to documentation participant Team requests question Further information is requested

Comments

@mehrhardt
Copy link
Collaborator

I downloaded the github repository of the challenge and a docker container (docker run --rm -it -v data:/mnt/share/petric:ro ghcr.io/synerbi/sirf:edge). NB: I noticed that the usage was much simpler than described by David here. Is this video outdated now?

I attached the image to VScode. Somehow the preinstalled conda environments didn't work with my interactive python sessions. This was "easily" fixed by creating a new environment and installing some dependencies (numpy, tensorboardx, deprecation, cil).

When running $python petric.py I received an error which I think is due to the data being missing:

Traceback (most recent call last):                                                                                                                                                                   
  File "/home/jovyan/work/PETRIC/petric.py", line 139, in <module>                                                                                                                                   
    get_data(srcdir=SRCDIR / "Siemens_mMR_NEMA_IQ", outdir=OUTDIR / "mMR_NEMA")),                                                                                                                    
  File "/home/jovyan/work/PETRIC/petric.py", line 123, in get_data                                                                                                                                   
    acquired_data = STIR.AcquisitionData(str(srcdir / 'prompts.hs'))                                                                                                                                 
  File "/opt/SIRF-SuperBuild/INSTALL/python/sirf/STIR.py", line 1206, in __init__                                                                                                                    
    check_status(self.handle)                                                                                                                                                                        
  File "/opt/SIRF-SuperBuild/INSTALL/python/sirf/Utilities.py", line 451, in check_status                                                                                                            
    raise error(errorMsg)                                                                                                                                                                            
sirf.Utilities.error: ??? "'Error opening file /mnt/share/petric/Siemens_mMR_NEMA_IQ/prompts.hs\\n' exception caught at line 419 of /opt/SIRF-SuperBuild/sources/SIRF/src/xSTIR/cSTIR/cstir.cpp; the reconstruction engine output may provide more information"    
@evgueni-ovtchinnikov
Copy link
Contributor

to get prompts and other necessary data one needs to run download_Siemens_mMR_NEMA_IQ.py (if this data has not been downloaded already) and prepare_mMR_NEMA_IQ_data.py

@KrisThielemans
Copy link
Member

No, we don't anymore. The data sits on the HTTPS server, all prepared.

@casperdcl
Copy link
Member

The -v data:/mnt/share/petric:ro in your command should be modified really...

i.e. if you download https://petric.tomography.stfc.ac.uk/data/ to /some/folder/data then you need -v /some/folder/data:/mnt/share/petric:ro

@casperdcl
Copy link
Member

I've documented this in #25 and also I'm currently zipping the folders in https://petric.tomography.stfc.ac.uk/data/ so it's easier to download in one click

@casperdcl casperdcl self-assigned this Jul 4, 2024
@casperdcl casperdcl added participant Team requests question Further information is requested documentation Improvements or additions to documentation labels Jul 4, 2024
@casperdcl
Copy link
Member

closing as completed; happy to re-open if unclear

@casperdcl casperdcl added the data label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data documentation Improvements or additions to documentation participant Team requests question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants