Moving functions around into the new framework. Added requiresProblem annotation.

This commit is contained in:
rowanc1
2014-01-16 10:06:00 -08:00
parent 124337024c
commit 2f5b7ae8f7
4 changed files with 81 additions and 34 deletions
-13
View File
@@ -42,19 +42,6 @@ class BaseInversion(object):
opt.bfgsH0 = SimPEG.Solver(reg.modelObj2Deriv())
@property
def Wd(self):
"""
Standard deviation weighting matrix.
"""
if getattr(self,'_Wd',None) is None:
eps = np.linalg.norm(utils.mkvc(self.data.dobs),2)*1e-5
self._Wd = 1/(abs(self.data.dobs)*self.data.std+eps)
return self._Wd
@Wd.setter
def Wd(self, value):
self._Wd = value
@property
def phi_d_target(self):
"""