diff --git a/processing/post/reLabel.py b/processing/post/reLabel.py index b08659dfb..da608e994 100755 --- a/processing/post/reLabel.py +++ b/processing/post/reLabel.py @@ -44,7 +44,7 @@ for name in filenames: damask.util.report(scriptName,name) table = damask.Table.from_ASCII(StringIO(''.join(sys.stdin.read())) if name is None else name) - for label,substitue in enumerate(options.label,options.substitute): + for label,substitute in zip(options.label,options.substitute): table.rename(label,substitute,scriptID+' '+' '.join(sys.argv[1:])) table.to_ASCII(sys.stdout if name is None else name)