use 4 space indentation

This commit is contained in:
chen 2016-10-14 12:06:09 -04:00
parent 87b857d307
commit 1f01dce862
1 changed files with 49 additions and 44 deletions

View File

@ -114,10 +114,13 @@ labelsProcessed = ['inc']
for fi in xrange(len(labels)):
featureName = labels[fi]
# remove trouble maker "("" and ")" from label/feature name
if "(" in featureName: featureName = featureName.replace("(", "")
if ")" in featureName: featureName = featureName.replace(")", "")
if "(" in featureName:
featureName = featureName.replace("(", "")
if ")" in featureName:
featureName = featureName.replace(")", "")
# skip increment and duplicated columns in the ASCII table
if featureName in labelsProcessed: continue
if featureName in labelsProcessed:
continue
featureIdx = labels_idx[fi]
featureDim = featuresDim[fi]
@ -126,7 +129,9 @@ for fi in xrange(len(labels)):
# mapping 2D data onto a 3D rectangular mesh to get 4D data
# WARNING: In paraview, the data for a recmesh is mapped as:
# --> len(z), len(y), len(x), size(data)
# dataset = dataset.reshape((mshGridDim[0], mshGridDim[1], mshGridDim[2],
# dataset = dataset.reshape((mshGridDim[0],
# mshGridDim[1],
# mshGridDim[2],
# dataset.shape[1]))
# write out data
print "adding {}...".format(featureName)