pyplati / platipy

Processing Library and Analysis Toolkit for Medical Imaging in Python
https://pyplati.github.io/platipy/
Apache License 2.0
111 stars 27 forks source link

ModuleNotFoundError: No module named 'platipy.dicom.nifti_to_rtstruct' #258

Closed SuperLuckyKris closed 6 months ago

SuperLuckyKris commented 6 months ago

I have installed platipy, but it prompts No module named 'platipy.dicom.nifti_to_rtstruct err errr1

pchlap commented 6 months ago

Hi @1413194910,

we moved the convert_nifti function a few versions ago. You should now import the function like this:

from platipy.dicom.io.nifti_to_rtstruct import convert_nifti

See the latest documentation here: https://pyplati.github.io/platipy/dicom.html#module-platipy.dicom.io.nifti_to_rtstruct

Let me know if you have any other issues.

SuperLuckyKris commented 6 months ago

Thank you for your advice, I solved this problem according to the method you gave me