Commit 07b928f7 authored by Mark Hymers's avatar Mark Hymers
Browse files

Handle both new and old module names


Signed-off-by: Mark Hymers's avatarMark Hymers <mark.hymers@hankel.co.uk>
parent be749d02
Pipeline #1092 passed with stage
in 5 minutes and 10 seconds
......@@ -14,8 +14,15 @@ import tarfile
from .errors import YIASMixedTypeError, YIASNoSeriesError, YIASDuplicateError
from .utils import sanitise_string
from pydicom import read_file
from pydicom.errors import InvalidDicomError
try:
from pydicom import read_file
except ImportError: # pragma: nocover
from dicom import read_file
try:
from pydicom.errors import InvalidDicomError
except ImportError: # pragma: nocover
from dicom.errors import InvalidDicomError
__all__ = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment