From 75ee54146bbfcdf31f7be7692963be8650dc406d Mon Sep 17 00:00:00 2001 From: Christoph Kords Date: Wed, 22 May 2013 21:20:00 +0000 Subject: [PATCH] deleted unused function --- processing/post/addDataToGeometry.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/processing/post/addDataToGeometry.py b/processing/post/addDataToGeometry.py index be2c134c7..4402da0b5 100755 --- a/processing/post/addDataToGeometry.py +++ b/processing/post/addDataToGeometry.py @@ -6,29 +6,6 @@ from optparse import OptionParser -# ----------------------------- -def writeHeader(myfile,stat,geomtype): -# ----------------------------- - - myfile.write('2\theader\n') - myfile.write(string.replace('$Id$','\n','\\n')+ - '\t' + ' '.join(sys.argv[1:]) + '\n') - if geomtype == 'nodebased': - myfile.write('node') - for i in range(stat['NumberOfNodalScalars']): - myfile.write('\t%s'%''.join(stat['LabelOfNodalScalar'][i].split())) - - elif geomtype == 'ipbased': - myfile.write('elem\tip') - for i in range(stat['NumberOfElementalScalars']): - myfile.write('\t%s'%''.join(stat['LabelOfElementalScalar'][i].split())) - - myfile.write('\n') - - return True - - - # ----------------------------- def findTag(filename,tag): # ----------------------------- @@ -100,7 +77,7 @@ for geomtype in ['nodebased','ipbased']: if not findTag(vtkfilename,dataSetTag[geomtype]): # check if data set is already present... vtkfile.write(dataSetTag[geomtype] + ' %i'%len(myData[0])) # ... if not, write keyword for idx,label in enumerate(table.labels): # write data - vtkfile.write('\nSCALARS '+label+' double 1\nLOOKUP_TABLE default\n') # all scalar data + vtkfile.write('\nSCALARS '+label+' double 1\nLOOKUP_TABLE default\n') # all scalar data vtkfile.write('\n'.join(map(str,myData[idx])))