diff --git a/processing/pre/geom_fromAng.py b/processing/pre/geom_fromAng.py index f27027c5a..c599b78b1 100755 --- a/processing/pre/geom_fromAng.py +++ b/processing/pre/geom_fromAng.py @@ -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, diff --git a/processing/pre/geom_fromTIFF.py b/processing/pre/geom_fromTIFF.py index 7925dbf86..12a0e8d64 100755 --- a/processing/pre/geom_fromTIFF.py +++ b/processing/pre/geom_fromTIFF.py @@ -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':