From 34aa11f197424450db2c2da8ca510124a11c222f Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 24 Apr 2016 22:50:41 +0200 Subject: [PATCH] finishing half-done renaming --- processing/post/addDisplacement.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/processing/post/addDisplacement.py b/processing/post/addDisplacement.py index ab0c98299..0bafdb6cc 100755 --- a/processing/post/addDisplacement.py +++ b/processing/post/addDisplacement.py @@ -141,13 +141,13 @@ for name in filenames: if table.label_dimension(options.defgrad) != 9: errors.append('deformation gradient "{}" is not a 3x3 tensor.'.format(options.defgrad)) - coordDim = table.label_dimension(options.pos) + coordDim = table.label_dimension(options.coords) if not 3 >= coordDim >= 1: - errors.append('coordinates "{}" need to have one, two, or three dimensions.'.format(options.pos)) + errors.append('coordinates "{}" need to have one, two, or three dimensions.'.format(options.coords)) elif coordDim < 3: remarks.append('appending {} dimension{} to coordinates "{}"...'.format(3-coordDim, 's' if coordDim < 2 else '', - options.pos)) + options.coords)) if remarks != []: damask.util.croak(remarks) if errors != []: @@ -157,7 +157,7 @@ for name in filenames: # --------------- figure out size and grid --------------------------------------------------------- - table.data_readArray([options.defgrad,options.pos]) + table.data_readArray([options.defgrad,options.coords]) table.data_rewind() if len(table.data.shape) < 2: table.data.shape += (1,) # expand to 2D shape @@ -196,8 +196,8 @@ for name in filenames: table.info_append(scriptID + '\t' + ' '.join(sys.argv[1:])) table.labels_append((['{}_pos' .format(i+1) for i in xrange(3)] if options.nodal else []) + - ['{}_avg({}).{}' .format(i+1,options.defgrad,options.pos) for i in xrange(3)] + - ['{}_fluct({}).{}'.format(i+1,options.defgrad,options.pos) for i in xrange(3)] ) + ['{}_avg({}).{}' .format(i+1,options.defgrad,options.coords) for i in xrange(3)] + + ['{}_fluct({}).{}'.format(i+1,options.defgrad,options.coords) for i in xrange(3)] ) table.head_write() # ------------------------------------------ output data -------------------------------------------