changed option name from “invertColor” to “invert”
This commit is contained in:
parent
5d3f4a6474
commit
58b3d017bd
|
@ -35,7 +35,7 @@ parser.add_option('--flipud', dest='flipUD', action='store_true',
|
||||||
help='flip around horizontal axis')
|
help='flip around horizontal axis')
|
||||||
parser.add_option('--color', dest='color', type='string',
|
parser.add_option('--color', dest='color', type='string',
|
||||||
help='color scheme')
|
help='color scheme')
|
||||||
parser.add_option('--invertColor',dest='invert', action='store_true',
|
parser.add_option('--invert', dest='invert', action='store_true',
|
||||||
help='invert color scheme')
|
help='invert color scheme')
|
||||||
parser.add_option('--crop', dest='crop', type='int', nargs=4, metavar='LEFT RIGHT TOP BOTTOM',
|
parser.add_option('--crop', dest='crop', type='int', nargs=4, metavar='LEFT RIGHT TOP BOTTOM',
|
||||||
help='pixels cropped on left, right, top, bottom')
|
help='pixels cropped on left, right, top, bottom')
|
||||||
|
@ -93,8 +93,8 @@ for name in filenames:
|
||||||
file['croak'].write('\033[1m'+scriptName+'\033[0m: '+file['name']+'\n')
|
file['croak'].write('\033[1m'+scriptName+'\033[0m: '+file['name']+'\n')
|
||||||
|
|
||||||
table = damask.ASCIItable(file['input'],file['output'],
|
table = damask.ASCIItable(file['input'],file['output'],
|
||||||
buffered = False,
|
buffered = False, # make unbuffered ASCII_table
|
||||||
labels = options.label != None) # make unbuffered ASCII_table
|
labels = options.label != None) # no labels when taking 2D dataset
|
||||||
table.head_read() # read ASCII header info
|
table.head_read() # read ASCII header info
|
||||||
|
|
||||||
# --------------- figure out column to process -----------------------------------------------------
|
# --------------- figure out column to process -----------------------------------------------------
|
||||||
|
@ -134,7 +134,7 @@ for name in filenames:
|
||||||
width -options.crop[1],
|
width -options.crop[1],
|
||||||
height-options.crop[3]))
|
height-options.crop[3]))
|
||||||
|
|
||||||
# ------------------------------------------ output result -----------------------------------------
|
# ------------------------------------------ output result -----------------------------------------
|
||||||
im.save(file['output'],format = "PNG")
|
im.save(file['output'],format = "PNG")
|
||||||
if options.show: im.show()
|
if options.show: im.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue