]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/explore.py
* src/gdcmFile.h : bug fix. Variable type and variable name had same name
[gdcm.git] / gdcmPython / demo / explore.py
index defb226b2a72ab3aac6706491ad0f3e2c4d36643..a72c79cde38cadd080e2bca7744ec542a79ebf4a 100644 (file)
@@ -11,12 +11,12 @@ if not os.path.isfile(FileName):
    sys.exit()
 
 toRead = gdcmHeader(FileName)
-ValDict = toRead.GetPubEntry()
-ExploreElements = ["Patient Name", "Patient ID",
-                                                "Study Date", "Study Time", "Study ID",
-                                                "Study Instance UID",
-                                                "Series Number",
-                                                "Modality"]
+ValDict = toRead.GetEntry()
+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,4 +24,4 @@ for elem in ExploreElements:
                print "[%s]" % ValDict[elem]
        except KeyError:
                print "NOT FOUND"
-               
+