Error in inversion procedure gravity inversion method to estimate the Moho

14 views
Skip to first unread message

Eitel

unread,
Mar 18, 2019, 7:33:39 AM3/18/19
to Fatiando a Terra
Hi all,

I am running the gravity inversion method to estimate the Moho, using optimal regularization parameter, density contrast, and reference height from your GitHub repository.
while running the code on python, the below mistake appear:
How can I solve it?

results['models_refdens'] = [s.estimate_ for s in solutions]
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-451-c73bd16f37e7> in <module>()
----> 1 results['models_refdens'] = [s.estimate_ for s in solutions]

AttributeError: 'NoneType' object has no attribute 'estimate_'

Leonardo Uieda

unread,
Mar 18, 2019, 8:06:18 PM3/18/19
to fati...@googlegroups.com
Eitel,

That means that some line of code before that didn't get executed or failed the solvers didn't get fitted properly (so estimate_ is None)
Bear in mind that this code is not super robust for different use cases and requires knowing well what each line is doing.

Hope that helps,

Leo

--
Leonardo Uieda

Visiting Research Scholar
Department of Earth Sciences - SOEST
University of Hawai'i at Mānoa
www.leouieda.com


--
You received this message because you are subscribed to the Google Groups "Fatiando a Terra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fatiando+u...@googlegroups.com.
To post to this group, send email to fati...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages