1 from gdcmPython import *
3 ### Get filename from command line or default it
7 FileName = os.path.join(GDCM_DATA_PATH, "test.acr")
9 if not os.path.isfile(FileName):
10 print "Cannot open file ", FileName
13 toRead = gdcmHeader(FileName)
14 ValDict = toRead.GetEntry()
15 ExploreElements = ["Patient's Name", "Patient ID",
16 "Study Date", "Study Time", "Study ID",
21 for elem in ExploreElements:
22 print "[%s] = " % elem,
24 print "[%s]" % ValDict[elem]