typos fixed

This commit is contained in:
Luv Sharma 2015-06-14 05:51:53 +00:00
parent 37792f67df
commit a5b3e9d64c
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ for file in files:
file['croak'].write('\033[1m' + scriptName + '\033[0m: ' + (file['name'] if file['name'] != 'STDIN' else '') + '\n')
info = {
'grid': np.zones(3,'i'),
'grid': np.ones(3,'i'),
'size': np.zeros(3,'d'),
'origin': np.zeros(3,'d'),
'microstructures': 0,

View File

@ -91,7 +91,7 @@ for file in files:
]
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]]),
fmt='%0'+str(1+int(math.log10(np.amax(imarray))))+'d'
fmt='%0'+str(1+int(math.log10(np.amax(imarray))))+'d')
#--- output finalization --------------------------------------------------------------------------
if file['name'] != 'STDIN':