found some unused (forgotten debug) statements
This commit is contained in:
parent
2102fadfc7
commit
4899b3df0a
|
@ -124,8 +124,7 @@ for file in files:
|
||||||
i += s
|
i += s
|
||||||
|
|
||||||
#--- do work ------------------------------------------------------------------------------------
|
#--- do work ------------------------------------------------------------------------------------
|
||||||
newInfo['grid'] = np.array([{True: int(o*float(n.translate(None,'xX'))),
|
newInfo['grid'] = np.array(int(o*float(n.translate(None,'xX'))) if [n[-1].lower() == 'x' else int(n.translate(None,'xX'))}[n[-1].lower() == 'x'] for o,n in zip(info['grid'],options.grid)],'i')
|
||||||
False: int(n.translate(None,'xX'))}[n[-1].lower() == 'x'] for o,n in zip(info['grid'],options.grid)],'i')
|
|
||||||
newInfo['grid'] = np.where(newInfo['grid'] <= 0 , info['grid'],newInfo['grid'])
|
newInfo['grid'] = np.where(newInfo['grid'] <= 0 , info['grid'],newInfo['grid'])
|
||||||
|
|
||||||
microstructure = microstructure.reshape(info['grid'],order='F')
|
microstructure = microstructure.reshape(info['grid'],order='F')
|
||||||
|
@ -149,13 +148,8 @@ for file in files:
|
||||||
|
|
||||||
newInfo['size'] = info['size']/info['grid']*newInfo['grid']
|
newInfo['size'] = info['size']/info['grid']*newInfo['grid']
|
||||||
newInfo['origin'] = info['origin']+info['size']/info['grid']*options.offset
|
newInfo['origin'] = info['origin']+info['size']/info['grid']*options.offset
|
||||||
a = np.bincount(microstructure_cropped.flatten())
|
|
||||||
b = np.nonzero(a)[0]
|
|
||||||
y = np.size(b)
|
|
||||||
newInfo['microstructures'] = microstructure_cropped.max()
|
newInfo['microstructures'] = microstructure_cropped.max()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#--- report ---------------------------------------------------------------------------------------
|
#--- report ---------------------------------------------------------------------------------------
|
||||||
if (any(newInfo['grid'] != info['grid'])):
|
if (any(newInfo['grid'] != info['grid'])):
|
||||||
file['croak'].write('--> grid a b c: %s\n'%(' x '.join(map(str,newInfo['grid']))))
|
file['croak'].write('--> grid a b c: %s\n'%(' x '.join(map(str,newInfo['grid']))))
|
||||||
|
|
Loading…
Reference in New Issue