print ""
print ""
+try:
+ print gdcm.DataEntry
+ print gdcm.DataEntryPtr
+except:
+ pass
+
### Get filename from command line or default it
try:
fileName = sys.argv[1]
printLevel = 1
### Build the file element list
-file = gdcm.File()
+file = gdcm.File.New()
file.SetFileName(fileName)
file.Load()
if not file.IsReadable():
print "##############################################################"
val=file.GetFirstEntry()
while(val):
- if(isinstance(val,gdcm.DataEntryPtr)):
+ if(isinstance(val,gdcm.DataEntry)):
print "Data %s [%s] [%s] : %s" % (val.GetKey().str(),val.GetVR().str(),
val.GetName(),val.GetString())
val=file.GetNextEntry()