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