Merge branch 'ref/dev' into ref/regularization

This commit is contained in:
D Fournier
2016-05-29 14:10:46 -07:00
65 changed files with 5181 additions and 527 deletions
+6 -1
View File
@@ -147,10 +147,15 @@ class BetaSchedule(InversionDirective):
class TargetMisfit(InversionDirective):
chifact = 1.
phi_d_star = None
@property
def target(self):
if getattr(self, '_target', None) is None:
self._target = self.survey.nD*0.5
if self.phi_d_star is None:
self.phi_d_star = 0.5 * self.survey.nD
self._target = self.chifact * self.phi_d_star # the factor of 0.5 is because we do phid = 0.5*|| dpred - dobs||^2
return self._target
@target.setter
def target(self, val):