]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/explore.py
* Add the update of header entries using the shadow library
[gdcm.git] / gdcmPython / demo / explore.py
index af124bb64dcf9cf3465ebb2a6cd157e551a9282b..c5b253f29c111c42a773866a80af57d36779fc88 100644 (file)
@@ -11,12 +11,12 @@ if not os.path.isfile(FileName):
    sys.exit()
 
 toRead = gdcmHeader(FileName)
-ValDict = toRead.GetPubElVal()
-ExploreElements = ["Patient Name", "Patient ID",
-                                                "Study Date", "Study Time", "Study ID",
-                                                "Study Instance UID",
-                                                "Series Number",
-                                                "Modality"]
+ValDict = toRead.GetPubEntry()
+ExploreElements = ["Patient's Name", "Patient ID",
+                   "Study Date", "Study Time", "Study ID",
+                   "Study Instance UID",
+                   "Series Number",
+                   "Modality"]
 
 for elem in ExploreElements:
        print "[%s] = " % elem,
@@ -24,3 +24,4 @@ for elem in ExploreElements:
                print "[%s]" % ValDict[elem]
        except KeyError:
                print "NOT FOUND"
+