mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-06 05:16:51 +08:00
Minor updates to pointers in reg and invProb
This commit is contained in:
@@ -45,6 +45,8 @@ class BaseInvProblem(object):
|
||||
self.prob, self.survey = dmisfit.prob, dmisfit.survey
|
||||
#TODO: Remove: (and make iteration printers better!)
|
||||
self.opt.parent = self
|
||||
self.reg.parent = self
|
||||
self.dmisfit.parent = self
|
||||
|
||||
@Utils.callHooks('startup')
|
||||
def startup(self, m0):
|
||||
|
||||
@@ -40,7 +40,7 @@ class BaseRegularization(object):
|
||||
@property
|
||||
def inv(self): return self.parent.inv
|
||||
@property
|
||||
def objFunc(self): return self.parent
|
||||
def invProb(self): return self.parent
|
||||
@property
|
||||
def reg(self): return self
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user