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