]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/explore.py
* gdcmPython/demo/*.py : bug fix due to method names
[gdcm.git] / gdcmPython / demo / explore.py
index af124bb64dcf9cf3465ebb2a6cd157e551a9282b..defb226b2a72ab3aac6706491ad0f3e2c4d36643 100644 (file)
@@ -11,7 +11,7 @@ if not os.path.isfile(FileName):
    sys.exit()
 
 toRead = gdcmHeader(FileName)
-ValDict = toRead.GetPubElVal()
+ValDict = toRead.GetPubEntry()
 ExploreElements = ["Patient Name", "Patient ID",
                                                 "Study Date", "Study Time", "Study ID",
                                                 "Study Instance UID",
@@ -24,3 +24,4 @@ for elem in ExploreElements:
                print "[%s]" % ValDict[elem]
        except KeyError:
                print "NOT FOUND"
+