mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-28 13:30:34 +08:00
Minor updates to pointers in reg and invProb
This commit is contained in:
1 parent
2d92e7249d
commit
5c29348984
2 files changed
+3
-1
No files matched your search
@@ -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