X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2Fexplore.py;h=a72c79cde38cadd080e2bca7744ec542a79ebf4a;hb=4399e9fed374a2dcc7f1ab98ec7b5af5f7982aca;hp=af124bb64dcf9cf3465ebb2a6cd157e551a9282b;hpb=153db29d779f82893684c6aac08b0a565dd84334;p=gdcm.git diff --git a/gdcmPython/demo/explore.py b/gdcmPython/demo/explore.py index af124bb6..a72c79cd 100644 --- a/gdcmPython/demo/explore.py +++ b/gdcmPython/demo/explore.py @@ -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.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,3 +24,4 @@ for elem in ExploreElements: print "[%s]" % ValDict[elem] except KeyError: print "NOT FOUND" +