bug fix for tensorview plotSlice

This commit is contained in:
rowanc1
2014-03-05 16:21:27 -08:00
parent 95bbfb8d13
commit a6badc51c9
+1 -1
View File
@@ -305,7 +305,7 @@ class TensorView(object):
# Now just deal with 'F' and 'E'
aveOp = 'ave' + vType + ('2CCV' if view == 'vec' else '2CC')
v = getattr(self,aveOp)*v # average to cell centers (might be a vector)
v = self.r(v.reshape((self.nC,3),order='F'),'CC','CC','M')
v = self.r(v.reshape((self.nC,-1),order='F'),'CC','CC','M')
if view == 'vec':
outSlice = []
if 'X' not in normal: outSlice.append(getIndSlice(v[0]))