File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
2- from . import pydicom_handler as handler
2+ try :
3+ from . import pydicom_handler as handler
4+ except ImportError :
5+ pass
6+
37
48def add_handler ():
59 """Add the pixel data handler to *pydicom*.
Original file line number Diff line number Diff line change 1010try :
1111 import pydicom
1212 from pydicom .encaps import generate_pixel_data_frame
13+ from . import handler
1314 HAS_PYDICOM = True
1415except ImportError :
1516 HAS_PYDICOM = False
1617
17- from . import add_handler , remove_handler , handler
18+ from . import add_handler , remove_handler
1819from libjpeg import decode
1920from libjpeg .data import get_indexed_datasets , JPEG_DIRECTORY
2021
Original file line number Diff line number Diff line change 1010 import pydicom .config
1111 from pydicom .pixel_data_handlers .util import convert_color_space
1212 from pydicom .encaps import defragment_data
13+ from . import handler
1314 HAS_PYDICOM = True
1415except ImportError :
1516 HAS_PYDICOM = False
1617
17- from . import add_handler , remove_handler , handler
18+ from . import add_handler , remove_handler
1819from libjpeg import decode
1920from libjpeg .data import get_indexed_datasets
2021
You can’t perform that action at this time.
0 commit comments