added Id + a little help
This commit is contained in:
parent
b746a65390
commit
c08f704dee
|
@ -13,7 +13,7 @@ scriptName = os.path.splitext(scriptID.split()[1])[0]
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
||||||
parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """
|
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)
|
""", version = scriptID)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import damask
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from optparse import OptionParser
|
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]
|
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 = """
|
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)
|
""", version = scriptID)
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ elif os.path.splitext(options.vtk)[1] == '.vtk':
|
||||||
else:
|
else:
|
||||||
parser.error('unsupported VTK file type extension')
|
parser.error('unsupported VTK file type extension')
|
||||||
|
|
||||||
|
|
||||||
Npoints = rGrid.GetNumberOfPoints()
|
Npoints = rGrid.GetNumberOfPoints()
|
||||||
Ncells = rGrid.GetNumberOfCells()
|
Ncells = rGrid.GetNumberOfCells()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue