typos fixed
This commit is contained in:
parent
37792f67df
commit
a5b3e9d64c
|
@ -75,7 +75,7 @@ for file in files:
|
||||||
file['croak'].write('\033[1m' + scriptName + '\033[0m: ' + (file['name'] if file['name'] != 'STDIN' else '') + '\n')
|
file['croak'].write('\033[1m' + scriptName + '\033[0m: ' + (file['name'] if file['name'] != 'STDIN' else '') + '\n')
|
||||||
|
|
||||||
info = {
|
info = {
|
||||||
'grid': np.zones(3,'i'),
|
'grid': np.ones(3,'i'),
|
||||||
'size': np.zeros(3,'d'),
|
'size': np.zeros(3,'d'),
|
||||||
'origin': np.zeros(3,'d'),
|
'origin': np.zeros(3,'d'),
|
||||||
'microstructures': 0,
|
'microstructures': 0,
|
||||||
|
|
|
@ -91,7 +91,7 @@ for file in files:
|
||||||
]
|
]
|
||||||
file['output'].write('\n'.join(['%i\theader'%(len(header))] + header) + '\n')
|
file['output'].write('\n'.join(['%i\theader'%(len(header))] + header) + '\n')
|
||||||
np.savetxt(file['output'],imarray.reshape([info['grid'][1]*info['grid'][2],info['grid'][0]]),
|
np.savetxt(file['output'],imarray.reshape([info['grid'][1]*info['grid'][2],info['grid'][0]]),
|
||||||
fmt='%0'+str(1+int(math.log10(np.amax(imarray))))+'d'
|
fmt='%0'+str(1+int(math.log10(np.amax(imarray))))+'d')
|
||||||
|
|
||||||
#--- output finalization --------------------------------------------------------------------------
|
#--- output finalization --------------------------------------------------------------------------
|
||||||
if file['name'] != 'STDIN':
|
if file['name'] != 'STDIN':
|
||||||
|
|
Loading…
Reference in New Issue