From c08f704dee76da64aebc6ab0b28309b89c529088 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 7 Jan 2015 19:29:27 +0000 Subject: [PATCH] added Id + a little help --- processing/post/vtk_addVoxelcloudData.py | 2 +- processing/post/vtk_addVoxelgridData.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/processing/post/vtk_addVoxelcloudData.py b/processing/post/vtk_addVoxelcloudData.py index 7bad544ab..77c356492 100755 --- a/processing/post/vtk_addVoxelcloudData.py +++ b/processing/post/vtk_addVoxelcloudData.py @@ -13,7 +13,7 @@ scriptName = os.path.splitext(scriptID.split()[1])[0] # -------------------------------------------------------------------- parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """ -Add scalar and RGB tuples from ASCIItable to existing VTK voxel cloud (.vtu). +Add scalar and RGB tuples from ASCIItable to existing VTK voxel cloud (.vtu/.vtk). """, version = scriptID) diff --git a/processing/post/vtk_addVoxelgridData.py b/processing/post/vtk_addVoxelgridData.py index 989a9bcc0..af1d972ad 100755 --- a/processing/post/vtk_addVoxelgridData.py +++ b/processing/post/vtk_addVoxelgridData.py @@ -6,7 +6,7 @@ import damask from collections import defaultdict from optparse import OptionParser -scriptID = string.replace('$Id: addCalculation.py 3465 2014-09-12 14:14:55Z MPIE\m.diehl $','\n','\\n') +scriptID = string.replace('$Id$','\n','\\n') scriptName = os.path.splitext(scriptID.split()[1])[0] # -------------------------------------------------------------------- @@ -14,7 +14,7 @@ scriptName = os.path.splitext(scriptID.split()[1])[0] # -------------------------------------------------------------------- parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """ -Add scalar and RGB tuples from ASCIItable to existing VTK voxel grid (.vtr). +Add scalar and RGB tuples from ASCIItable to existing VTK voxel grid (.vtr/.vtk). """, version = scriptID) @@ -56,7 +56,6 @@ elif os.path.splitext(options.vtk)[1] == '.vtk': else: parser.error('unsupported VTK file type extension') - Npoints = rGrid.GetNumberOfPoints() Ncells = rGrid.GetNumberOfCells()