analysiscenter/radio

Does not work with pydicom >= 1.0

kmader opened this issue · 2 comments

Library does not work with the newest version of pydicom which is imported as pydicom instead of dicom

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-a2708da00b4e> in <module>()
      4 import tensorflow as tf
      5 
----> 6 from radio.dataset import Pipeline, FilesIndex, Dataset, F
      7 from radio import CTImagesMaskedBatch as CTIMB

/Users/mader/anaconda/lib/python3.5/site-packages/radio/__init__.py in <module>()
      3 """3d ct-scans preprocessing module with dataset submodule."""
      4 import importlib
----> 5 from .preprocessing import *
      6 from .pipelines import *
      7 from . import dataset

/Users/mader/anaconda/lib/python3.5/site-packages/radio/preprocessing/__init__.py in <module>()
      1 """ CT-scans preprocessing module. """
      2 
----> 3 from .ct_batch import CTImagesBatch
      4 from .ct_masked_batch import CTImagesMaskedBatch
      5 from .histo import sample_ellipsoid_region

/Users/mader/anaconda/lib/python3.5/site-packages/radio/preprocessing/ct_batch.py in <module>()
     12 import aiofiles
     13 import blosc
---> 14 import dicom
     15 import SimpleITK as sitk
     16 

ImportError: No module named 'dicom'

fixed in PR, #2

Thank you @kmader for your contribution.