Fixed osr import in ediFilesUtils, moved into class which imports only on build up.

Fixed the boolean error in Directives.
This commit is contained in:
GudniRos
2016-04-07 08:46:51 -07:00
parent b4f329f65a
commit fb60f45a3c
2 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ class SaveOutputDictEveryIteration(_SaveEveryIteration):
mref = 0
mx = self.reg.Wx * ( self.reg.mapping * (self.invProb.curModel - mref) )
phi_mx = 0.5 * mx.dot(mx)
if self.prob.mesh.dim==2:
if self.prob.mesh.dim>2:
my = self.reg.Wy * ( self.reg.mapping * (self.invProb.curModel - mref) )
phi_my = 0.5 * my.dot(my)
else: