Skip to content

Commit

Permalink
FIX nibabel 5.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Aug 2, 2023
1 parent ee4b89e commit 5d8dba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion surfer/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
import gzip
import numpy as np
import nibabel as nib
from nibabel.spatialimages import ImageFileError
try:
from nibabel.spatialimages import ImageFileError # removed in nibabel 5.1
except ImportError:
from nibabel.filebasedimages import ImageFileError

from .utils import verbose

Expand Down

0 comments on commit 5d8dba3

Please sign in to comment.