fixed bug in 2D output format alignment.

This commit is contained in:
Philip Eisenlohr 2012-09-13 12:28:21 +00:00
parent 77b2eef269
commit 5dbbb56460
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ for file in files:
translate_y = [i - options.offset[1] for i in yindex]
translate_z = [i - options.offset[2] for i in zindex]
microstructure_cropped[min(translate_x):(max(translate_x)+1),min(translate_y):(max(translate_y)+1),min(translate_z):(max(translate_z)+1)] = microstructure[min(xindex):(max(xindex)+1),min(yindex):(max(yindex)+1),min(zindex):(max(zindex)+1)]
formatwidth = int(math.floor(math.log10(microstructure.max()+1)))
formatwidth = int(math.floor(math.log10(microstructure.max())+1))
# ------------------------------------------ assemble header ---------------------------------------

View File

@ -159,7 +159,7 @@ for file in files:
microstructure += options.microstructure # shift microstructure indices
formatwidth = int(math.floor(math.log10(microstructure.max()+1)))
formatwidth = int(math.floor(math.log10(microstructure.max())+1))
i = 0
for z in xrange(info['resolution'][2]):
for y in xrange(info['resolution'][1]):