Greetings,
As a young researcher being in initial days of work, I was working on exploring the PGI inversion of Gravity data.
I have been stuck to a point where the inversion code interrupts saying:
ValueError Traceback (most recent call last)
in <cell line: 101>()
99
100 # Run the inversion
→ 101 inverted_model = inversion_algo.run(initial_model)
13 frames
/usr/local/lib/python3.10/dist-packages/simpeg/utils/pgi_utils.py in _check_weights(self, weights, n_components, n_samples)
220
221 # check range
→ 222 if any(np.less(weights, 0.0)) or any(np.greater(weights, 1.0)):
223 raise ValueError(
224 "The parameter ‘weights’ should be in the range "
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I have checked the weights (it sums to a total of 1), and also looked for solutions here and there but nothing works.
Also when I change the
update_gmm=True —> update_gmm=False, after this the inversion runs successfully, but the learned GMM after iterations in inversion comes out to be faulty as the GMM peaks doesnt collide with the new peaks generated.
I am hoping to see your response.
Mridul Chawla