From 9280b0a4e2adbf5b2a986e2ed9d1c2db6b0e1c0a Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 23 Sep 2013 18:35:30 +0000 Subject: [PATCH] fixed bug where configuration wrote floating point numbers for grain IDs and texture IDs. --- processing/pre/geom_fromVoronoiTessellation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/pre/geom_fromVoronoiTessellation.py b/processing/pre/geom_fromVoronoiTessellation.py index 27ec065af..14cb67f5e 100755 --- a/processing/pre/geom_fromVoronoiTessellation.py +++ b/processing/pre/geom_fromVoronoiTessellation.py @@ -126,7 +126,7 @@ for file in files: eulers = theTable.data_asArray(['phi1','Phi','phi2']) if theTable.labels_index('microstructure') != -1: grain = theTable.data_asArray(['microstructure']) - grainIDs = numpy.unique(grain) + grainIDs = numpy.unique(grain).astype('i') else: grain = 1+numpy.arange(len(eulers)) grainIDs = grain