Hello everyone,
I
am writing a code (in version 0.18.0, the latest) for a magnetization
forward model simulation based on the examples that are provided:
plot_inv_mag_nonLinear_Amplitude
plot_2b_magnetics_mvi
plot_inv_mag_MVI_Sparse_TreeMesh
but they do not work, I find an error in the prediction line:
synthetic_data = simulation.dpred(model)
It gives: '
index 6 is out of bounds for axis 0 with size 6
'
While using version 0.17 the error was in the forward model of the simulation
# Create the forward model operator
simulation = magnetics.simulation.Simulation3DIntegral(
survey=survey,
mesh=mesh,
chiMap=idenMap,
ind_active=actv,
store_sensitivities="forward_only")
Error: 'Keyword input 'ind_active' is not a known property or attribute of Simulation3DIntegral'.
I suppose that 'ind_active' may have been deprecated (since I do not find it in the
API), when this attribute is removed, then predictions cannot be executed (as well as in version 0.18.0).
I am sorry if some of my points are silly, but would you please give light on this and show how to solve it?
Thanks a lot for reading!
Gaston.