X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=gdcmPython%2Fdemo%2FPrintDicomDir.py.in;h=dcd47fef32a27530b8e3407318497e67d5c46637;hb=71e4d3f94788734baf92e3fe161d4e6146c08fa8;hp=c891650314e1c5122e92665d92808c04c76fa4cb;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/gdcmPython/demo/PrintDicomDir.py.in b/gdcmPython/demo/PrintDicomDir.py.in index c8916503..dcd47fef 100644 --- a/gdcmPython/demo/PrintDicomDir.py.in +++ b/gdcmPython/demo/PrintDicomDir.py.in @@ -34,7 +34,7 @@ except IndexError: printLevel = 1 ### Build the DicomDir element list -dicomdir = gdcm.DicomDir() +dicomdir = gdcm.DicomDir.New() dicomdir.SetStartMethod(startMethod) dicomdir.SetProgressMethod(progressMethod) @@ -67,7 +67,7 @@ while(patient): image=serie.GetFirstImage() while(image): print " Image" - print " ---",image.GetDataEntry(0x0004,0x1500).GetValue() + print " ---",image.GetDataEntry(0x0004,0x1500).GetString() image=serie.GetNextImage() serie=study.GetNextSerie() study=patient.GetNextStudy()