From e9ec497da666c9ba015f926b8f43f095942be37c Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 5 Apr 2016 16:17:55 -0400 Subject: [PATCH] fixed bug preventing files specified with full path to be treated properly --- processing/post/averageTable.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/processing/post/averageTable.py b/processing/post/averageTable.py index edb0a0661..4a2f1eca6 100755 --- a/processing/post/averageTable.py +++ b/processing/post/averageTable.py @@ -37,10 +37,14 @@ if options.label is None: if filenames == []: filenames = [None] for name in filenames: - try: - table = damask.ASCIItable(name = name, - outname = options.label+'_averaged_'+name if name else name, - buffered = False) + damask.util.croak(name) + + try: table = damask.ASCIItable(name = name, + outname = os.path.join( + os.path.split(name)[0], + options.label+'_averaged_'+os.path.split(name)[1] + ) if name else name, + buffered = False) except: continue damask.util.report(scriptName,name)