-# 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 *
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":