fixed issues when having grains and eulers

This commit is contained in:
Martin Diehl 2015-01-13 16:04:49 +00:00
parent 19611660c2
commit ed6b4fe50a
1 changed files with 3 additions and 3 deletions

View File

@ -110,20 +110,20 @@ for file in files:
labels = ['x','y','z']
index = 0
eulerCol = table.labels_index('phi1')
hasEulers = np.all(table.labels_index(['phi1','Phi','phi2'])) != -1
hasGrains = table.labels_index('microstructure') != -1
grainCol = table.labels_index('microstructure')
hasGrains = grainCol != -1
if hasEulers:
labels += ['phi1','Phi','phi2']
index += 3
eulerCol = index
if hasGrains:
labels += ['microstructure']
index += 1
grainCol = index
table.data_readArray(labels)
coords = table.data[:,0:3]