X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FReorganiseFiles.py;h=3db13f4dffb8331209e7a68b2bcfcd2936ab2c5d;hb=38d772b8588bc4e7106dbafcb24f6bff91b8c4c1;hp=e1372adb3337878dbcf1aab08b6dc7f4a6493c06;hpb=256d6a32612f8bffdb7868749d7995fc74c0c03d;p=gdcm.git diff --git a/gdcmPython/demo/ReorganiseFiles.py b/gdcmPython/demo/ReorganiseFiles.py index e1372adb..3db13f4d 100644 --- a/gdcmPython/demo/ReorganiseFiles.py +++ b/gdcmPython/demo/ReorganiseFiles.py @@ -1,4 +1,4 @@ -# Rename the dcm extension files of a given drectory according +# Rename the dcm extension files of a given directory according # to series and image number information extracted in each respective header. from gdcmPython import * @@ -30,7 +30,7 @@ SourceFiles=glob.glob(os.path.join(SourceDirectory, "*.dcm")) for file in SourceFiles: header = gdcmHeader(file) - info = header.GetPubEntry() + info = header.GetEntry() try: ImNum = info["Image Number"] if len(ImNum) == 0 or ImNum == "gdcm::Unfound":