From de693adaa7129011f3890ff0c37e1e0b020615c0 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Sun, 29 May 2016 18:04:09 -0700 Subject: [PATCH] Minor updates to get it 'working' There still seems to be a problem with this example: - The line search breaks. - The plots are not informative. - There are a lot of errors in the structured array codes. --- SimPEG/Examples/MT_1D_ForwardAndInversion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimPEG/Examples/MT_1D_ForwardAndInversion.py b/SimPEG/Examples/MT_1D_ForwardAndInversion.py index 2c3d9b46..446613e5 100644 --- a/SimPEG/Examples/MT_1D_ForwardAndInversion.py +++ b/SimPEG/Examples/MT_1D_ForwardAndInversion.py @@ -50,7 +50,7 @@ def run(plotIt=True): m_0 = np.log(sigma_0[active]) # Set the mapping - actMap = simpeg.Maps.ActiveCells(m1d, active, np.log(1e-8), nC=m1d.nCx) + actMap = simpeg.Maps.InjectActiveCells(m1d, active, np.log(1e-8), nC=m1d.nCx) mappingExpAct = simpeg.Maps.ExpMap(m1d) * actMap ## Setup the layout of the survey, set the sources and the connected receivers @@ -76,7 +76,7 @@ def run(plotIt=True): survey.dobs = survey.dtrue + 0.025*abs(survey.dtrue)*np.random.randn(*survey.dtrue.shape) if plotIt: - fig = MT.Utils.dataUtils.plotMT1DModelData(problem) + fig = MT.Utils.dataUtils.plotMT1DModelData(problem, [m_0]) fig.suptitle('Target - smooth true')