fixed issues when having grains and eulers
This commit is contained in:
parent
19611660c2
commit
ed6b4fe50a
|
@ -110,20 +110,20 @@ for file in files:
|
||||||
labels = ['x','y','z']
|
labels = ['x','y','z']
|
||||||
index = 0
|
index = 0
|
||||||
|
|
||||||
|
eulerCol = table.labels_index('phi1')
|
||||||
hasEulers = np.all(table.labels_index(['phi1','Phi','phi2'])) != -1
|
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:
|
if hasEulers:
|
||||||
labels += ['phi1','Phi','phi2']
|
labels += ['phi1','Phi','phi2']
|
||||||
index += 3
|
index += 3
|
||||||
|
|
||||||
eulerCol = index
|
|
||||||
|
|
||||||
if hasGrains:
|
if hasGrains:
|
||||||
labels += ['microstructure']
|
labels += ['microstructure']
|
||||||
index += 1
|
index += 1
|
||||||
|
|
||||||
grainCol = index
|
|
||||||
|
|
||||||
table.data_readArray(labels)
|
table.data_readArray(labels)
|
||||||
coords = table.data[:,0:3]
|
coords = table.data[:,0:3]
|
||||||
|
|
Loading…
Reference in New Issue