simplified

This commit is contained in:
Martin Diehl 2020-03-16 22:48:49 +01:00
parent d87d13087c
commit 0695cc1829
1 changed files with 2 additions and 4 deletions

View File

@ -44,9 +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 i,label in enumerate(options.label):
table.rename(label,
options.substitute[i],
scriptID+' '+' '.join(sys.argv[1:]))
for label,substitue in enumerate(options.label,options.substitute):
table.rename(label,substitute,scriptID+' '+' '.join(sys.argv[1:]))
table.to_ASCII(sys.stdout if name is None else name)