fixed bug where configuration wrote floating point numbers for grain IDs and texture IDs.

This commit is contained in:
Philip Eisenlohr 2013-09-23 18:35:30 +00:00
parent ca2a8d0a03
commit 9280b0a4e2
1 changed files with 1 additions and 1 deletions

View File

@ -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