X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintDicomDir.py.in;h=266adb19dfdbe1047734df02a01b6ebaccb42a01;hb=1853729b78625682ecf8bc6498d7d0beffa0890c;hp=341df43d0cfe802c12136b3ef423d52dabd9d16f;hpb=278965e64eb49669b1a05493843f97144d8323b4;p=gdcm.git diff --git a/gdcmPython/demo/PrintDicomDir.py.in b/gdcmPython/demo/PrintDicomDir.py.in index 341df43d..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.GetValEntry(0x0004,0x1500).GetValue() + print " ---",image.GetDataEntry(0x0004,0x1500).GetString() image=serie.GetNextImage() serie=study.GetNextSerie() study=patient.GetNextStudy()