icometrix / dicom2nifti

MIT License
333 stars 78 forks source link

Fix deprecation warning about pydicom_compat #145

Open abrys opened 4 months ago

abrys commented 4 months ago

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