From 8b9ed5592868de7fc7934136d58af3b5720ee97e Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 13 May 2014 15:03:55 +0000 Subject: [PATCH] small "beautification" --- processing/pre/geom_canvas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/processing/pre/geom_canvas.py b/processing/pre/geom_canvas.py index 913a23554..10b0d77a7 100755 --- a/processing/pre/geom_canvas.py +++ b/processing/pre/geom_canvas.py @@ -150,7 +150,8 @@ for file in files: i += s #--- 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']) microstructure = microstructure.reshape(info['grid'],order='F')