polishing of whitespace, usage help, etc.

This commit is contained in:
Philip Eisenlohr 2016-11-29 14:44:34 -05:00
parent 43c1880195
commit 0f04ddd88e
4 changed files with 8 additions and 10 deletions

View File

@ -29,7 +29,7 @@ parser.add_option('-o','--offset',
parser.add_option('-l','--label',
dest = 'label',
action = 'extend', metavar = '<string LIST>',
help='column label(s) to be appended')
help = 'column label(s) to be appended')
parser.add_option('-a','--asciitable',
dest = 'asciitable',
type = 'string', metavar = 'string',
@ -60,7 +60,7 @@ if options.asciitable is not None and os.path.isfile(options.asciitable):
damask.util.croak('column{} {} not found...'.format('s' if len(missing_labels) > 1 else '',', '.join(missing_labels)))
else:
parser.error('no mapped ASCIItable given.')
parser.error('no indexed ASCIItable given.')
# --- loop over input files -------------------------------------------------------------------------

View File

@ -25,7 +25,7 @@ parser.add_option('-c','--map',
parser.add_option('-l','--label',
dest = 'label',
action = 'extend', metavar = '<string LIST>',
help='column label(s) to be appended')
help = 'column label(s) to be appended')
parser.add_option('-a','--asciitable',
dest = 'asciitable',
type = 'string', metavar = 'string',

View File

@ -61,9 +61,8 @@ parser.set_defaults(condition = '',
if filenames == []: filenames = [None]
for name in filenames:
try:
table = damask.ASCIItable(name = name,
buffered = False)
try: table = damask.ASCIItable(name = name,
buffered = False)
except: continue
damask.util.report(scriptName,name)

View File

@ -34,10 +34,9 @@ parser.set_defaults(pos = 'pos',
if filenames == []: filenames = [None]
for name in filenames:
try:
table = damask.ASCIItable(name = name,
buffered = False,
readonly = True)
try: table = damask.ASCIItable(name = name,
buffered = False,
readonly = True)
except: continue
damask.util.report(scriptName,name)