You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jacobian matrix size was wrong. There are information :
min/max(dweight) = 2.14119e+09/8.33918e+13
Building constraints matrix
constraint matrix of size(nBounds x nModel) 156 x 100
check Jacobian: wrong dimensions: (8000x2670) should be (8000x100) force: 1
jacobian size invalid, forced recalc: 1
Calculating Jacobian matrix (forced=1)...... 4.4e-06 s
Traceback (most recent call last):
File "\pygimli\Two_magnetic_model.py", line 58, in <module>
invmodel = inv.run(data, absoluteError=absError)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\miniconda3\envs\pg\Lib\site-packages\pygimli\frameworks\inversion.py", line 692, in run
self.inv.start()
RuntimeError: ./core/src/inversion.cpp:95 double GIMLI::RInversion::getPhiD(const Vec&) const getPhiD == nan
Your environment
OS : Windows (10 10.0.22631 SP0 Multiprocessor Free)
CPU(s) : 16
Machine : AMD64
Architecture : 64bit
Environment : Python
Some of your data are near-zero. If you consider a relative error transformed into an absolute one
absError = 0.002 * np.abs(data)
the minimum of this vector becomes practically zero (1e-27) and this makes the inversion crash. I strongly suggest adding a fixed absolute error (e.g. magnetometer resolution) and expect this to resolve the issue.
Thank you very much, sir! I have tried to add a fixed absolute error before, but it doesn't work. I want to know if there is a problem with my initial grid settings in the inversion function: inv = pg.Inversion(fop=fop, verbose=True, stopAtChi1=True).
Problem description
Your environment
Python 3.11.10 | packaged by conda-forge | (main, Sep 22 2024, 14:00:36)
[MSC v.1941 64 bit (AMD64)]
pygimli : 1.5.2
pgcore : 1.5.0
numpy : 1.26.4
matplotlib : 3.9.2
scipy : 1.14.1
tqdm : 4.66.5
pyvista : 0.44.1
Steps to reproduce
magnetic_inversion.zip
The text was updated successfully, but these errors were encountered: