From 7d5f1270d5cd01a9596316112200b1da7e6f1ac9 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 16 Jul 2013 21:11:44 +0000 Subject: [PATCH] fixed nasty bug that prevented proper grid rescaling --- processing/pre/geom_rescale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/pre/geom_rescale.py b/processing/pre/geom_rescale.py index 88e6ff65c..3f9605d4c 100755 --- a/processing/pre/geom_rescale.py +++ b/processing/pre/geom_rescale.py @@ -162,7 +162,7 @@ for file in files: this = int((i+1)*float(newInfo['grid'][j])/info['grid'][j]) multiplicity[j].append(this-last) last = this - + microstructure = microstructure.reshape(info['grid'],order='F') microstructure = numpy.repeat( numpy.repeat( @@ -203,7 +203,7 @@ for file in files: # --- write microstructure information ------------------------------------------------------------ formatwidth = int(math.floor(math.log10(microstructure.max())+1)) - theTable.data = microstructure.reshape((info['grid'][0],info['grid'][1]*info['grid'][2]),order='F').transpose() + theTable.data = microstructure.reshape((newInfo['grid'][0],newInfo['grid'][1]*newInfo['grid'][2]),order='F').transpose() theTable.data_writeArray('%%%ii'%(formatwidth)) #--- output finalization --------------------------------------------------------------------------