X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintHeader.py;h=1019c49ad37074488eb5f9e5265daa5768e66574;hb=27607c280b744ce7de6a1698935181e66aa2f3e6;hp=0125576c117b55f355647ab361c529488b70aad6;hpb=cc00646f966fd2f882ea26f5e0238a58057e557d;p=gdcm.git diff --git a/gdcmPython/demo/PrintHeader.py b/gdcmPython/demo/PrintHeader.py index 0125576c..1019c49a 100644 --- a/gdcmPython/demo/PrintHeader.py +++ b/gdcmPython/demo/PrintHeader.py @@ -24,7 +24,7 @@ except IndexError: print fileName, type(fileName) header = gdcm.Header(fileName) if not header.IsReadable(): - print "The ", fileName, " file is not readable with gdcm. Sorry." + print "The '", fileName, "' file is not readable with gdcm. Sorry." sys.exit() print "##############################################################" @@ -32,7 +32,7 @@ print "### Display all the elements and their respective values" print "## found in the ", fileName, " file." print "##############################################################" -header.Initialize() +header.InitTraversal() val=header.GetNextEntry() while(val): val.Print()