From 78c22d8449f67d6fcd211820a25ee83aa22ea8bc Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 21 Nov 2012 10:31:52 +0000 Subject: [PATCH] corrected label in case of divergence of tensor, now using correct notation for scalar: divFFT(data) instead of 1_divFFT(data) --- processing/post/addDivergence.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/processing/post/addDivergence.py b/processing/post/addDivergence.py index 9b9cf11fd..9369f498b 100755 --- a/processing/post/addDivergence.py +++ b/processing/post/addDivergence.py @@ -160,8 +160,10 @@ for file in files: for accuracy in options.accuracy: divergence[datatype][label][accuracy] = numpy.array([0.0 for i in xrange(N*datainfo[datatype]['len']//3)]).\ reshape(list(resolution)+[datainfo[datatype]['len']//3]) - table.labels_append(['%i_div%s(%s)'%(i+1,accuracy,label) - for i in xrange(datainfo[datatype]['len']//3)]) # extend ASCII header with new labels + if datatype == 'vector': # extend ASCII header with new labels + table.labels_append(['div%s(%s)'%(accuracy,label)]) + if datatype == 'tensor': + table.labels_append(['%i_div%s(%s)'%(i+1,accuracy,label) for i in xrange(3)]) # ------------------------------------------ assemble header ---------------------------------------