]> Creatis software - gdcm.git/blob - gdcmPython/demo/test.py
modif DcmWrite
[gdcm.git] / gdcmPython / demo / test.py
1 from gdcmPython import *
2 toRead = gdcmHeader(FileName)
3 toRead.LoadElements()
4
5 print "##############################################################"
6 print "### Display all the elements and their respective values"
7 print "## found in the ", FileName, " file."
8 print "##############################################################"
9 ValDict = toRead.GetPubElVal()
10 for key in ValDict.keys():
11         print "[%s] = [%s]" %(key, ValDict[key])