X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2Fexplore.py;h=a72c79cde38cadd080e2bca7744ec542a79ebf4a;hb=a7db02bef6a7ac565b50cab8fbda9f04f3dfe07a;hp=aa92d787053a0245cf087ae631b2db5016394649;hpb=29f93a14132dd0c6d9d9480ea038a2a4e8ed7e93;p=gdcm.git diff --git a/gdcmPython/demo/explore.py b/gdcmPython/demo/explore.py index aa92d787..a72c79cd 100644 --- a/gdcmPython/demo/explore.py +++ b/gdcmPython/demo/explore.py @@ -11,13 +11,12 @@ if not os.path.isfile(FileName): sys.exit() toRead = gdcmHeader(FileName) -toRead.LoadElements() -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, @@ -25,3 +24,4 @@ for elem in ExploreElements: print "[%s]" % ValDict[elem] except KeyError: print "NOT FOUND" +