From 0c7eb57d4607f167e493650c947bac64c7f5fdcc Mon Sep 17 00:00:00 2001 From: rowanc1 Date: Mon, 17 Mar 2014 09:18:20 -0700 Subject: [PATCH] Minor updates to Linear Problem. --- Tutorials/Linear.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tutorials/Linear.py b/Tutorials/Linear.py index affed20f..1bfa7339 100644 --- a/Tutorials/Linear.py +++ b/Tutorials/Linear.py @@ -1,5 +1,4 @@ from SimPEG import * -import matplotlib.pyplot as plt class LinearSurvey(Survey.BaseSurvey): def projectFields(self, u): @@ -55,11 +54,14 @@ def example(N): if __name__ == '__main__': + import matplotlib.pyplot as plt + prob, survey, model = example(100) M = prob.mesh reg = Regularization.Tikhonov(model) - objFunc = ObjFunction.BaseObjFunction(survey, reg) + beta = Parameters.BetaSchedule() + objFunc = ObjFunction.BaseObjFunction(survey, reg, beta=beta) opt = Optimization.InexactGaussNewton(maxIter=20) inv = Inversion.BaseInversion(objFunc, opt) m0 = np.zeros_like(survey.mtrue)