From 705d23a5ed74421d3a925037fccff1368d77c73d Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 15 Oct 2013 12:36:52 +0000 Subject: [PATCH] fixed bug for non-present "microstructure" info in header. --- processing/pre/geom_fromVoronoiTessellation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/pre/geom_fromVoronoiTessellation.py b/processing/pre/geom_fromVoronoiTessellation.py index 7fe22e276..b1f06328a 100755 --- a/processing/pre/geom_fromVoronoiTessellation.py +++ b/processing/pre/geom_fromVoronoiTessellation.py @@ -161,8 +161,8 @@ for file in files: extra_header.append(header) if info['microstructures'] != len(grainIDs): - file['croak'].write('grain data not matching grain count...\n') - info['microstructures'] = min(info['microstructures'],len(grainIDs)) + file['croak'].write('grain data not matching grain count (%i)...\n'%(len(grainIDs))) + info['microstructures'] = len(grainIDs) if 0 not in options.grid: # user-specified grid info['grid'] = numpy.array(options.grid)