Skip to content

Commit bbd420a

Browse files
committed
fix: (py)dicom import
1 parent 3a985f5 commit bbd420a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/pydicom_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@
2727
import dicom as pydicom
2828
# Values not imported by default
2929
import dicom.values
30+
from dicom.sequence import Sequence
3031
except ImportError:
3132
try:
3233
import pydicom
3334
except ImportError:
3435
have_dicom = False
3536
else: # pydicom module available
3637
from pydicom.dicomio import read_file
38+
from pydicom.sequence import Sequence
3739
# Values not imported by default
3840
import pydicom.values
3941
else: # dicom module available
4042
read_file = pydicom.read_file
4143

4244
if have_dicom:
43-
from pydicom.sequence import Sequence
4445
try:
4546
# Versions >= 1.0
4647
tag_for_keyword = pydicom.datadict.tag_for_keyword

0 commit comments

Comments
 (0)