added $Id$ escaping

This commit is contained in:
Philip Eisenlohr 2011-08-18 08:00:19 +00:00
parent 10493ea8b0
commit def056f30f
10 changed files with 27 additions and 26 deletions

View File

@ -284,8 +284,9 @@ def vtk_writeASCII_box(diag,defgrad):
parser = OptionParser(option_class=extendedOption, usage='%prog [options] datafile[s]', description = """
Produce VTK file from data field. Coordinates are taken from (consecutive) ip.x, ip.y, and ip.z columns.
$Id$
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-s', '--scalar', action='extend', dest='scalar', type='string', \
help='list of scalars to visualize')
parser.add_option('-d', '--deformation', dest='defgrad', type='string', \

View File

@ -38,8 +38,8 @@ parser = OptionParser(option_class=extendableOption, usage='%prog options [file[
Add column(s) containing Cauchy stress based on given column(s) of
deformation gradient and first Piola--Kirchhoff stress.
$Id: addCauchy 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -129,7 +129,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addCauchy 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -40,8 +40,8 @@ def determinant(m):
parser = OptionParser(option_class=extendableOption, usage='%prog options [file[s]]', description = """
Add column(s) containing determinant of requested tensor column(s).
$Id: addDeterminant 278 2011-06-15 17:57:42Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -130,7 +130,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addDeterminant 278 2011-06-15 17:57:42Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -56,8 +56,8 @@ Add column(s) containing divergence of requested column(s).
Operates on periodic ordered three-dimensional data sets.
Deals with both vector- and tensor-valued fields.
$Id: addDivergence 264 2011-05-25 17:43:45Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-a','--accuracy', dest='accuracy', type='int', \
@ -158,7 +158,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addDivergence 264 2011-05-25 17:43:45Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -41,8 +41,8 @@ def Mises(what,tensor):
parser = OptionParser(option_class=extendableOption, usage='%prog options [file[s]]', description = """
Add vonMises equivalent values for symmetric part of requested strains and/or stresses.
$Id: addMises 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -132,7 +132,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addMises 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -35,8 +35,8 @@ def L2(object):
parser = OptionParser(option_class=extendableOption, usage='%prog options [file[s]]', description = """
Add column(s) containing norm of requested column(s) being either vectors or tensors.
$Id: addNorm 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -126,7 +126,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addNorm 263 2011-05-25 17:42:50Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -43,8 +43,8 @@ def prefixMultiply(what,len):
parser = OptionParser(option_class=extendableOption, usage='%prog options [file[s]]', description = """
Add column(s) containing given strains based on given stretches of requested deformation gradient column(s).
$Id: addStrainTensors 274 2011-06-14 12:59:39Z MPIE\o.guevenc $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -152,7 +152,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: addStrainTensors 274 2011-06-14 12:59:39Z MPIE\o.guevenc $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers + head) + '\n' # build extended header

View File

@ -44,8 +44,8 @@ parser = OptionParser(option_class=extendableOption, usage='%prog [options] [fil
Average each data block of size 'packing' into single values thus reducing the former resolution
to resolution/packing. (Requires numpy.)
$Id: averageDown 266 2011-05-29 19:38:42Z MPIE\p.eisenlohr $
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \
@ -105,7 +105,7 @@ for file in files:
output = '%i\theader'%(headerlines+1) + '\n' + \
''.join(passOn) + \
string.replace('$Id: averageDown 266 2011-05-29 19:38:42Z MPIE\p.eisenlohr $','\n','\\n')+ '\t' + \
string.replace('$Id$','\n','\\n')+ '\t' + \
' '.join(sys.argv[1:]) + '\n' + \
'\t'.join(headers) + '\n' # build extended header

View File

@ -614,8 +614,8 @@ User mappings need to be formulated in an incremental fashion for each new data
and may use the current (incremental) result, b(ase), as well as the number, n(umber),
of already processed data points for evaluation.
$Id$
""")
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-i','--info', action='store_true', dest='info', \
help='list contents of resultfile [%default]')

View File

@ -29,7 +29,7 @@ class extendedOption(Option):
parser = OptionParser(option_class=extendedOption, usage='%prog [options] spectralOut[s]', description = """
Generate datafile of converged iteration per increment.
""" + string.replace('$Id: spectral_iterationCount 919 2011-06-15 18:14:05Z MPIE\p.eisenlohr $','\n','\\n')
""" + string.replace('$Id$','\n','\\n')
)
parser.add_option('-m','--memory', dest='memory', action='store_true', \