valosekj / fsleyes_preset

Run FSLeyes and automatically set display options
GNU General Public License v3.0
0 stars 0 forks source link

`fsleyes_preset` fails during opening preop mask file: #21

Open valosekj opened 2 years ago

valosekj commented 2 years ago

fsleyes_preset fails during opening preop mask file:

valosek@chatham:/md1/TL-PMP/TL-PMP-195/masks$ ff ../Results/Mprage.nii.gz Mask1S_RMES_man_Honza.nii.gz 
Traceback (most recent call last):
  File "/usr/local/lib/fsleyes_preset/fsleyes_preset.py", line 268, in <module>
    main(sys.argv[1:])
  File "/usr/local/lib/fsleyes_preset/fsleyes_preset.py", line 185, in main
    if not get_image_type(os.path.abspath(arg)):
  File "/usr/local/lib/fsleyes_preset/fsleyes_preset.py", line 146, in get_image_type
    image = nib.load(fname_image)
  File "/usr/local/lib/fsleyes_preset/venv/lib/python3.7/site-packages/nibabel/loadsave.py", line 55, in load
    raise ImageFileError(f'Cannot work out file type of "{filename}"')
nibabel.filebasedimages.ImageFileError: Cannot work out file type of "/dc12/TL-PMP/TL-PMP-195/masks/Mask1S_RMES_man_Honza.nii.gz"