From 3097c87bea2693149e9d9391e7ebf372f184af25 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Wed, 12 Aug 2015 17:43:49 +0000 Subject: [PATCH] adoption of recent API change in ASCIItable. --- processing/pre/geom_fromMinimalSurface.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/processing/pre/geom_fromMinimalSurface.py b/processing/pre/geom_fromMinimalSurface.py index 55fee0b87..c6c405d67 100755 --- a/processing/pre/geom_fromMinimalSurface.py +++ b/processing/pre/geom_fromMinimalSurface.py @@ -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 -------------------------------------