X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2Fexplore.py;h=c5b253f29c111c42a773866a80af57d36779fc88;hb=65467b71ee500909b0ef7c31d442ca0c160d6a15;hp=af124bb64dcf9cf3465ebb2a6cd157e551a9282b;hpb=153db29d779f82893684c6aac08b0a565dd84334;p=gdcm.git diff --git a/gdcmPython/demo/explore.py b/gdcmPython/demo/explore.py index af124bb6..c5b253f2 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.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" +