TypeError Traceback (most recent call last)
Cell In[19], line 2
1 halfspace_resistivity = 100
----> 2 dpred = forward_simulation_halfspace(mesh, resistivity=halfspace_resistivity)
3 plot_apparent_resistivities(dpred, halfspace_resistivity)
Cell In[12], line 15, in forward_simulation_halfspace(mesh, survey, resistivity, nky)
10 rho = resistivity * np.ones(mesh.nC)
11 simulation_dc = dc.Simulation2DNodal(
12 mesh, rhoMap=maps.IdentityMap(mesh), solver=Solver,
13 survey=survey, nky=nky
14 )
—> 15 dpred = simulation_dc.make_synthetic_data(rho)
17 # clear the stored source values if they were previously computed
18 for src in survey.source_list:
File ~\anaconda3\envs\t2020\lib\site-packages\SimPEG\simulation.py:363, in BaseSimulation.make_synthetic_data(self, m, relative_error, noise_floor, f, add_noise, **kwargs)
360 relative_error = std
362 if f is None:
→ 363 f = self.fields(m)
365 dclean = self.dpred(m, f=f)
367 if add_noise is True:
File ~\anaconda3\envs\t2020\lib\site-packages\SimPEG\electromagnetics\static\resistivity\simulation_2d.py:155, in BaseDCSimulation2D.fields(self, m)
153 if self.Ainv[iky] is not None:
154 self.Ainv[iky].clean()
→ 155 self.Ainv[iky] = self.solver(A, **self.solver_opts)
156 RHS = self.getRHS(ky)
157 u = self.Ainv[iky] * RHS
File ~\anaconda3\envs\t2020\lib\site-packages\SimPEG\utils\solver_utils.py:46, in SolverWrapD..init(self, A, **kwargs)
43 self.kwargs = kwargs
45 if factorize:
—> 46 self.solver = fun(self.A, **kwargs)
TypeError: splu() got an unexpected keyword argument ‘is_symmetric’