icometrix / dicom2nifti

MIT License
339 stars 79 forks source link

AttributeError: module 'dicom2nifti' has no attribute 'convert_directory' #63

Closed yanesja closed 4 years ago

yanesja commented 4 years ago

I'm trying to convert a dicom directory to nifti. Just pip installed dicom2nifti this morning. Following code produces "AttributeError: module 'dicom2nifti' has no attribute 'convert_directory'" running Python 3.7.1.

import dicom2nifti

dicom_directory = ('/Volumes/Yanes_External/Data/Yanes_Dissertation/YD_P5_H7T191115-JAY01/YANES_F31_20191115_163844_406000/T1_MPRAGE_1ISO_SAG_P2_AA_0006') output_folder = ('/Users/julioyanes/Desktop/P05/FT')

dicom2nifti.convert_directory(dicom_directory, output_folder, compression=True, reorient=True)


AttributeError Traceback (most recent call last)

in ----> 1 dicom2nifti.convert_directory(dicom_directory, output_folder, compression=True, reorient=True) AttributeError: module 'dicom2nifti' has no attribute 'convert_directory' --------------------------------------------------------------------------- Any ideas?
abrys commented 4 years ago

Can you please provide me the output for the following. import dicom2nifti dicom2nifti.__file__

abrys commented 4 years ago

Closed due to inactivity