icometrix/dicom2nifti

Fix deprecation warning about pydicom_compat

abrys opened this issue · 0 comments

When importing "convert_dicom.py" in an environment with a recent version of nibabel you get the following deprecation warning
This is due to an import of pydicom using nibabel.pydicom_compat instead of a direct import

dicom2nifti/convert_dicom.py:13: DeprecationWarning: We will remove the 'pydicom_compat' module from nibabel 7.0. Please consult pydicom's documentation for any future needs.

    from nibabel.pydicom_compat import pydicom