small "beautification"

This commit is contained in:
Philip Eisenlohr 2014-05-13 15:03:55 +00:00
parent 4bfced1a70
commit 8b9ed55928
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ for file in files:
i += s i += s
#--- do work ------------------------------------------------------------------------------------ #--- do work ------------------------------------------------------------------------------------
newInfo['grid'] = numpy.array([{True:int(o*float(n.translate(None,'xX'))), False: int(n.translate(None,'xX'))}[n[-1].lower() == 'x'] for o,n in zip(info['grid'],options.grid)],'i') newInfo['grid'] = numpy.array([{True: int(o*float(n.translate(None,'xX'))),
False: int(n.translate(None,'xX'))}[n[-1].lower() == 'x'] for o,n in zip(info['grid'],options.grid)],'i')
newInfo['grid'] = numpy.where(newInfo['grid'] <= 0 , info['grid'],newInfo['grid']) newInfo['grid'] = numpy.where(newInfo['grid'] <= 0 , info['grid'],newInfo['grid'])
microstructure = microstructure.reshape(info['grid'],order='F') microstructure = microstructure.reshape(info['grid'],order='F')