You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I posted this under a closed issue; sorry if posting as a new issue doubles it up).
When trying to use papaya-builder.sh -atlas myAtlas.xml (in macOS Catalina), I am getting the following error:
Exception in thread "main" org.json.JSONException: JSONObject["images"] not found.
at org.json.JSONObject.get(JSONObject.java:473)
at org.json.JSONObject.getJSONObject(JSONObject.java:573)
at edu.uthscsa.ric.papaya.builder.Atlas.findImageFile(Atlas.java:76)
at edu.uthscsa.ric.papaya.builder.Atlas.createAtlas(Atlas.java:37)
at edu.uthscsa.ric.papaya.builder.Builder.main(Builder.java:257)
I have tried numerous things so that 'images' (which I assume are the 'imagefile' and the 'summaryimagefile' in the FSL Atlas Specification) can be found by the builder script.
I have tried placing myImage.nii (4D image with a region in each volume) and mySummaryimage.nii (3D image with all labelled regions I a single volume) in an atlas folder inside the Papaya folder (/Papaya/atlas/), with the xml header as above, and in the same directory as myAtlas.xml (within the /Papaya/ folder). In the latter case, I have amended the xml header this way:
Hello,
(I posted this under a closed issue; sorry if posting as a new issue doubles it up).
When trying to use papaya-builder.sh -atlas myAtlas.xml (in macOS Catalina), I am getting the following error:
Exception in thread "main" org.json.JSONException: JSONObject["images"] not found.
at org.json.JSONObject.get(JSONObject.java:473)
at org.json.JSONObject.getJSONObject(JSONObject.java:573)
at edu.uthscsa.ric.papaya.builder.Atlas.findImageFile(Atlas.java:76)
at edu.uthscsa.ric.papaya.builder.Atlas.createAtlas(Atlas.java:37)
at edu.uthscsa.ric.papaya.builder.Builder.main(Builder.java:257)
I have tried numerous things so that 'images' (which I assume are the 'imagefile' and the 'summaryimagefile' in the FSL Atlas Specification) can be found by the builder script.
This is my directory structure:
Papaya
├── LICENSE
├── README.md
├── atlas
| ├── myImage.nii
| └── mySummaryimage.nii
├── build
├── build.properties
├── docs
├── lib
├── myAtlas.xml
├── myImage.nii
├── mySummaryimage.nii
├── package-lock.json
├── package.json
├── papaya-builder.sh
├── release
├── src
└── tests
I am running papaya-builder.sh form inside this folder.
This is the header in my xml file (myAtlas.xml):
I have tried placing myImage.nii (4D image with a region in each volume) and mySummaryimage.nii (3D image with all labelled regions I a single volume) in an atlas folder inside the Papaya folder (/Papaya/atlas/), with the xml header as above, and in the same directory as myAtlas.xml (within the /Papaya/ folder). In the latter case, I have amended the xml header this way:
As per a previous comment, I have also tried to provide the path to myAtlas.xml when running papaya-builder.sh:
papaya-builder.sh -atlas /path/Papaya/myAtlas.xml
None of this has worked.
I would greatly appreciate any help with this issue.
The text was updated successfully, but these errors were encountered: