From 434bf2413e4add9c018c5e5568e8f163fb0fe4b8 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 10 Nov 2015 01:35:26 +0000 Subject: [PATCH] =?UTF-8?q?simplified=20if=E2=80=94else=20with=20a=20=3D?= =?UTF-8?q?=20b=20if=20c=20else=20d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- processing/pre/geom_unpack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/pre/geom_unpack.py b/processing/pre/geom_unpack.py index 224adbb39..987135239 100755 --- a/processing/pre/geom_unpack.py +++ b/processing/pre/geom_unpack.py @@ -76,8 +76,8 @@ for name in filenames: microstructure = table.microstructure_read(info['grid']) # read microstructure formatwidth = int(math.floor(math.log10(microstructure.max())+1)) # efficient number printing format - if options.oneD: table.data = microstructure - else: table.data = microstructure.reshape((info['grid'][0],info['grid'][1]*info['grid'][2]),order='F').transpose() + table.data = microstructure if options.oneD else \ + microstructure.reshape((info['grid'][0],info['grid'][1]*info['grid'][2]),order='F').transpose() table.data_writeArray('%%%ii'%(formatwidth),delimiter = ' ') #--- output finalization --------------------------------------------------------------------------