nicer code layout
This commit is contained in:
parent
c80b02dd72
commit
746cb9c306
|
@ -89,15 +89,13 @@ if options.weight is not None: labels += [options.weight]
|
|||
if filenames == []: filenames = [None]
|
||||
|
||||
for name in filenames:
|
||||
try:
|
||||
table = damask.ASCIItable(name = name,
|
||||
outname = os.path.join(os.path.dirname(name),
|
||||
'binned-{}-{}_'.format(*options.data)+ \
|
||||
('weighted-{}_'.format(options.weight) if options.weight else '') + \
|
||||
os.path.basename(name)) if name else name,
|
||||
buffered = False)
|
||||
except:
|
||||
continue
|
||||
try: table = damask.ASCIItable(name = name,
|
||||
outname = os.path.join(os.path.dirname(name),
|
||||
'binned-{}-{}_'.format(*options.data) +
|
||||
('weighted-{}_'.format(options.weight) if options.weight else '') +
|
||||
os.path.basename(name)) if name else name,
|
||||
buffered = False)
|
||||
except: continue
|
||||
damask.util.report(scriptName,name)
|
||||
|
||||
# ------------------------------------------ read header ------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue