added missing script arguments in documentation part of the header
This commit is contained in:
parent
98129eb6d4
commit
db18b3c77f
|
@ -152,7 +152,7 @@ for file in files:
|
|||
file['output'].write('\n'.join(microstructure) + \
|
||||
'\n'.join(texture))
|
||||
else:
|
||||
header = [scriptID+'\n']
|
||||
header = [scriptID ' ' + ' '.join(sys.argv[1:]) + '\n']
|
||||
header.append("grid\ta %i\tb %i\tc %i\n"%(info['grid'][0],info['grid'][1],info['grid'][2],))
|
||||
header.append("size\tx %f\ty %f\tz %f\n"%(info['size'][0],info['size'][1],info['size'][2],))
|
||||
header.append("origin\tx %f\ty %f\tz %f\n"%(info['origin'][0],info['origin'][1],info['origin'][2],))
|
||||
|
|
|
@ -214,7 +214,7 @@ for file in files:
|
|||
file['croak'].write('invalid size x y z.\n')
|
||||
sys.exit()
|
||||
|
||||
new_header.append(scriptID+'\n')
|
||||
new_header.append(scriptID,' '+ ' '.join(sys.argv[1:]) + '\n')
|
||||
new_header.append("grid\ta %i\tb %i\tc %i\n"%(info['grid'][0],info['grid'][1],info['grid'][2],))
|
||||
new_header.append("size\tx %f\ty %f\tz %f\n"%(info['size'][0],info['size'][1],info['size'][2],))
|
||||
new_header.append("origin\tx %f\ty %f\tz %f\n"%(info['origin'][0],info['origin'][1],info['origin'][2],))
|
||||
|
|
|
@ -101,7 +101,7 @@ if numpy.any(info['size'] <= 0.0):
|
|||
sys.exit()
|
||||
|
||||
#--- write header ---------------------------------------------------------------------------------
|
||||
header = [scriptID+'\n']
|
||||
header = [scriptID,' ' + ' '.join(sys.argv[1:])+'\n']
|
||||
header.append("grid\ta %i\tb %i\tc %i\n"%(info['grid'][0],info['grid'][1],info['grid'][2],))
|
||||
header.append("size\tx %f\ty %f\tz %f\n"%(info['size'][0],info['size'][1],info['size'][2],))
|
||||
header.append("origin\tx %f\ty %f\tz %f\n"%(info['origin'][0],info['origin'][1],info['origin'][2],))
|
||||
|
|
|
@ -175,7 +175,7 @@ if options.config:
|
|||
betaOfGrain[i]))
|
||||
|
||||
else:
|
||||
header = [scriptID+'\n']
|
||||
header = [scriptID,' ' + ' '.join(sys.argv[1:])+'\n']
|
||||
header.append("grid\ta %i\tb %i\tc %i\n"%(info['grid'][0],info['grid'][1],info['grid'][2],))
|
||||
header.append("size\tx %f\ty %f\tz %f\n"%(info['size'][0],info['size'][1],info['size'][2],))
|
||||
header.append("origin\tx %f\ty %f\tz %f\n"%(info['origin'][0],info['origin'][1],info['origin'][2],))
|
||||
|
|
|
@ -132,7 +132,7 @@ for file in files:
|
|||
file['output'].write('\n'.join(microstructure) + \
|
||||
'\n'.join(texture))
|
||||
else:
|
||||
header = [scriptID+'\n']
|
||||
header = [scriptID,' ' + ' '.join(sys.argv[1:])+'\n']
|
||||
header.append("grid\ta %i\tb %i\tc %i\n"%(info['grid'][0],info['grid'][1],info['grid'][2],))
|
||||
header.append("size\tx %f\ty %f\tz %f\n"%(info['size'][0],info['size'][1],info['size'][2],))
|
||||
header.append("origin\tx %f\ty %f\tz %f\n"%(info['origin'][0],info['origin'][1],info['origin'][2],))
|
||||
|
|
Loading…
Reference in New Issue