]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/PrintDicomDir.py.in
COMP: Fix comp
[gdcm.git] / gdcmPython / demo / PrintDicomDir.py.in
index 341df43d0cfe802c12136b3ef423d52dabd9d16f..dcd47fef32a27530b8e3407318497e67d5c46637 100644 (file)
@@ -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.GetValEntry(0x0004,0x1500).GetValue()
+            print "         ---",image.GetDataEntry(0x0004,0x1500).GetString()
             image=serie.GetNextImage()
          serie=study.GetNextSerie()
       study=patient.GetNextStudy()