syntax polish
This commit is contained in:
parent
0a35761636
commit
b04c5801a5
|
@ -33,7 +33,7 @@ scriptID = ' '.join([scriptName,damask.version])
|
|||
|
||||
# ----- helper function ----- #
|
||||
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
|
||||
v = sorted(list(set(xyz_array[:, posNum])))
|
||||
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',
|
||||
metavar='string',
|
||||
help='definition file for H5 data storage')
|
||||
parser.add_option('-p',
|
||||
'--pos', '--position',
|
||||
parser.add_option('-p', '--pos', '--position',
|
||||
dest='pos',
|
||||
type='string', metavar='string',
|
||||
help='label of coordinates [%default]')
|
||||
|
|
Loading…
Reference in New Issue