corrections

This commit is contained in:
Martin Diehl 2016-03-26 19:59:05 +01:00
parent f88426201d
commit 97314619cc
1 changed files with 7 additions and 3 deletions

View File

@ -13,15 +13,15 @@ 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 [file[s]]', description = """
Unpack geometry files containing ranges "a to b" and/or "n of x" multiples (exclusively in one line). Adds header to OIM grain file to make it accesible as ASCII table
""", version = scriptID) """, version = scriptID)
parser.add_option('-l', '--labels', parser.add_option('-l', '--labels',
dest = 'labels', dest = 'labels',
help = 'output geom file with one-dimensional data arrangement') help = 'lables for requested columns')
parser.set_defaults(labels = ['1_eulerangles','1_eulerangles','1_eulerangles', parser.set_defaults(labels = ['1_eulerangles','2_eulerangles','3_eulerangles',
'1_pos','2_pos', 'IQ', 'CI', 'Fit', 'GrainID',], '1_pos','2_pos', 'IQ', 'CI', 'Fit', 'GrainID',],
) )
@ -49,3 +49,7 @@ for name in filenames:
for i in data: for i in data:
table.data = i table.data = i
table.data_write() table.data_write()
# --- output finalization --------------------------------------------------------------------------
table.close() # close ASCII table