]> Creatis software - gdcm.git/blob - gdcmPython/demo/printGroupedPublicDict.py
modif DcmWrite
[gdcm.git] / gdcmPython / demo / printGroupedPublicDict.py
1 from gdcmPython import *
2 toRead = gdcmHeader(FileName)
3 toRead.LoadElements()
4
5 print "##############################################################"
6 print "### Display all the possible tags of the current public"
7 print "### dictionary, but grouped by using the Fourth field"
8 print "##############################################################"
9 AllDictFields = toRead.GetPubTagNamesByCategory()
10 for fourth in AllDictFields.keys():
11         print "   ############ Fourth group = ", fourth, " ##############"
12         for entry in  AllDictFields[fourth]:
13                 print "   ", entry
14