syntax polish
This commit is contained in:
parent
0a35761636
commit
b04c5801a5
|
@ -33,7 +33,7 @@ scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# ----- helper function ----- #
|
# ----- helper function ----- #
|
||||||
def get_rectMshVectors(xyz_array, posNum):
|
def get_rectMshVectors(xyz_array, posNum):
|
||||||
"""take in a xyz array from rectangular mesh and figure out Vx, Vy, Vz"""
|
"""Get Vx, Vy, Vz for rectLinear grid"""
|
||||||
# need some improvement, and only works for rectangular grid
|
# need some improvement, and only works for rectangular grid
|
||||||
v = sorted(list(set(xyz_array[:, posNum])))
|
v = sorted(list(set(xyz_array[:, posNum])))
|
||||||
v_interval = (v[2]+v[1])/2.0 - (v[1]+v[0])/2.0
|
v_interval = (v[2]+v[1])/2.0 - (v[1]+v[0])/2.0
|
||||||
|
@ -54,8 +54,7 @@ parser.add_option('-D', '--DefinitionFile',
|
||||||
type='string',
|
type='string',
|
||||||
metavar='string',
|
metavar='string',
|
||||||
help='definition file for H5 data storage')
|
help='definition file for H5 data storage')
|
||||||
parser.add_option('-p',
|
parser.add_option('-p', '--pos', '--position',
|
||||||
'--pos', '--position',
|
|
||||||
dest='pos',
|
dest='pos',
|
||||||
type='string', metavar='string',
|
type='string', metavar='string',
|
||||||
help='label of coordinates [%default]')
|
help='label of coordinates [%default]')
|
||||||
|
|
Loading…
Reference in New Issue