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

Slicer instructions - incomplete? #7

Open
mathieuboudreau opened this issue Oct 15, 2024 · 1 comment
Open

Slicer instructions - incomplete? #7

mathieuboudreau opened this issue Oct 15, 2024 · 1 comment

Comments

@mathieuboudreau
Copy link
Member

Example to run the script in a terminal:
Slicer.exe --python-script smoothing_procedure.py
-m "C:/path/to/main_volume.nii.gz"
-s "C:/path/to/segmentation.nii.gz"
-o "C:/path/to/output_labelmap.nii.gz"

Hi @CharlesPageot - I installed Slicer and am trying to replicate your smoothed skulls, however the instructions in these files are not working for me. Am I missing additional setup steps to run your script?

(base) mathieuboudreau@Mathieus-MacBook-Pro b0-fieldmap-realistic-simulation %  /Applications/Slicer.app/Contents/MacOS/Slicer --python-script smoothing_procedure.py -m data/sub-amuAL_T1w.nii.gz -s data/sub-amuAL_T1w_label-brain_dseg.nii.gz -o data/slicer_smoothing_output.nii.gz
Error #1 while writing setting "Modules/AdditionalPaths"
Error #1 while writing setting "Modules/IgnoreModules"
Error #1 while writing setting "Extensions/ManagerEnabled"
Error #1 while writing setting "Extensions/ServerUrl"
Error #1 while writing setting "Extensions/FrontendServerUrl"
Error #1 while writing setting "Extensions/InstallPath"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Switch to module:  "Welcome"
Populating font family aliases took 73 ms. Replace uses of missing font family ".AppleSystemUIFont" with one that exists to avoid this cost. 
Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "<string>", line 3, in <module>
ModuleNotFoundError: No module named 'click'
Switch to module:  ""
Switch to module:  ""

click was installed locally through pipy in my base, but maybe Slicer doesn't see that path

@CharlesPageot
Copy link

Yeah it looks like Slicer doesn't see it. Maybe if you try to install click inside Slicer's embedded Python environment?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants