adoption of recent API change in ASCIItable.

This commit is contained in:
Philip Eisenlohr 2015-08-12 17:43:49 +00:00
parent 64515d7aca
commit 3097c87bea
1 changed files with 7 additions and 5 deletions

View File

@ -73,13 +73,15 @@ parser.set_defaults(type = minimal_surfaces[0],
# --- loop over input files -------------------------------------------------------------------------
if filenames == []: filenames = ['STDIN']
if filenames == []: filenames = [None]
for name in filenames:
if not (name == 'STDIN' or os.path.exists(name)): continue
table = damask.ASCIItable(name = name, outname = name,
buffered = False, labeled = False, writeonly = True)
table.croak('\033[1m'+scriptName+'\033[0m'+(': '+name if name != 'STDIN' else ''))
try:
table = damask.ASCIItable(outname = name,
buffered = False, labeled = False)
except:
continue
table.croak('\033[1m'+scriptName+'\033[0m'+(': '+name if name else ''))
# ------------------------------------------ make grid -------------------------------------