X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintDicomDir.py.in;h=266adb19dfdbe1047734df02a01b6ebaccb42a01;hb=17daf7e7caceddf44e73864ee8d366613a1f0c82;hp=c891650314e1c5122e92665d92808c04c76fa4cb;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/gdcmPython/demo/PrintDicomDir.py.in b/gdcmPython/demo/PrintDicomDir.py.in index c8916503..266adb19 100644 --- a/gdcmPython/demo/PrintDicomDir.py.in +++ b/gdcmPython/demo/PrintDicomDir.py.in @@ -12,14 +12,6 @@ def PrintUse(): print "" print "" -### Progress methods -def startMethod(): - print "Start" -def progressMethod(): - print "Progress",dicomdir.GetProgress() -def endMethod(): - print "End" - ### Get filename from command line or default it try: fileName = sys.argv[1] @@ -34,11 +26,7 @@ except IndexError: printLevel = 1 ### Build the DicomDir element list -dicomdir = gdcm.DicomDir() - -dicomdir.SetStartMethod(startMethod) -dicomdir.SetProgressMethod(progressMethod) -dicomdir.SetEndMethod(endMethod) +dicomdir = gdcm.DicomDir.New() dicomdir.SetFileName(fileName) dicomdir.Load() @@ -67,7 +55,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()