diff --git a/processing/post/addDisplacement.py b/processing/post/addDisplacement.py index c53f1ba61..b421979c4 100755 --- a/processing/post/addDisplacement.py +++ b/processing/post/addDisplacement.py @@ -87,7 +87,7 @@ def displacementFluctFFT(F,grid,size,nodal=False,transformed=False): # MAIN # -------------------------------------------------------------------- -parser = OptionParser(option_class=damask.extendableOption, usage='%prog options file[s]', description = """ +parser = OptionParser(option_class=damask.extendableOption, usage='%prog [options] [ASCIItable(s)]', description = """ Add displacments resulting from deformation gradient field. Operates on periodic three-dimensional x,y,z-ordered data sets. Outputs at cell centers or cell nodes (into separate file). @@ -98,7 +98,7 @@ parser.add_option('-f', '--defgrad', dest = 'defgrad', metavar = 'string', - help = 'column label of deformation gradient [%default]') + help = 'label of deformation gradient [%default]') parser.add_option('-p', '--pos', '--position', dest = 'pos', diff --git a/processing/post/addGrainID.py b/processing/post/addGrainID.py index d3c2dd14d..232790580 100755 --- a/processing/post/addGrainID.py +++ b/processing/post/addGrainID.py @@ -11,7 +11,7 @@ scriptName = os.path.splitext(os.path.basename(__file__))[0] scriptID = ' '.join([scriptName,damask.version]) -parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """ +parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [ASCIItable(s)]', description = """ Add grain index based on similiarity of crystal lattice orientation. """, version = scriptID) diff --git a/processing/pre/geom_toTable.py b/processing/pre/geom_toTable.py index e858049d1..680b218cf 100755 --- a/processing/pre/geom_toTable.py +++ b/processing/pre/geom_toTable.py @@ -15,25 +15,10 @@ scriptID = ' '.join([scriptName,damask.version]) #-------------------------------------------------------------------------------------------------- parser = OptionParser(option_class=damask.extendableOption, usage='%prog [geomfile(s)]', description = """ -Translate geom description into ASCIItable containing 1/2/3_pos and microstructure. +Translate geom description into ASCIItable containing position and microstructure. """, version = scriptID) -parser.add_option('-p', - '--pos', '--position', - dest = 'pos', - type = 'string', metavar = 'string', - help = 'label of coordinates [%default]') -parser.add_option('-m', - '--microstructure', - dest = 'microstructure', - type = 'string', metavar = 'string', - help = 'label of microstructure index [%default]') - -parser.set_defaults(pos = 'pos', - microstructure = 'microstructure', - ) - (options, filenames) = parser.parse_args() # --- loop over input files ------------------------------------------------------------------------- @@ -71,14 +56,14 @@ for name in filenames: # --- read data ------------------------------------------------------------------------------------ - microstructure = table.microstructure_read(info['grid']) # read microstructure + microstructure = table.microstructure_read(info['grid']) # ------------------------------------------ assemble header --------------------------------------- table.info_clear() table.info_append(extra_header + [scriptID + '\t' + ' '.join(sys.argv[1:])]) table.labels_clear() - table.labels_append(['{}_{}'.format(1+i,options.pos) for i in xrange(3)]+[options.microstructure]) + table.labels_append(['{}_{}'.format(1+i,'pos') for i in xrange(3)]+['microstructure']) table.head_write() table.output_flush()