# Gravity anomaly Inversion issue

**URL:** <https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614>\
**Category:** Getting Started\
**Created:** [October 19, 2024, 7:09am UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614 "2024-10-19T07:09:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoatSuey](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@GoatSuey](https://simpeg.discourse.group/u/GoatSuey)\
**Post date:** [October 19, 2024, 7:09am UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614/1 "2024-10-19T07:09:42Z")

</div>

Hi all. I have recently tried to use Simpeg for inverting gravity data. But I face an issue when calling the Simulation3DIntegral class. I get error that I use many arguments to call, though I have been using the example from simpeg without changing anything.

In the past I have used simpeg for 1D Inversion for DC sounding with success, but yesterday when I tried to run the same script I have been using I got an error regarding the survey, which I’ve seen before.

Any ideas or/and help would be very helpful.

Theo

---

<div class="post-metadata">

**Author:** ![santisoler](https://yyz2.discourse-cdn.com/free1/user_avatar/simpeg.discourse.group/santisoler/32/210_2.png) [@santisoler](https://simpeg.discourse.group/u/santisoler)\
**Post date:** [October 21, 2024, 5:04pm UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614/2 "2024-10-21T17:04:07Z")

</div>

Hi Theo,

Thanks for opening this question. Could you provide more details on which example are you following, which version of SimPEG are you using and also share the error you are getting?

Can you share the output of running the following?

```auto
import simpeg
simpeg.Report()

```

If that fails, run this instead:

```auto
import SimPEG
SimPEG.Report()

```

Thanks,  
Santi

---

<div class="post-metadata">

**Author:** ![GoatSuey](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@GoatSuey](https://simpeg.discourse.group/u/GoatSuey)\
**Post date:** [October 23, 2024, 6:47pm UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614/3 "2024-10-23T18:47:40Z")

</div>

> [@santisoler](#):
>
> ```auto
> import simpeg
> simpeg.Report()
> 
> ```

I succeed in running the code by changing in the simulation implementation the:  
active\_cells=ind\_active  
to  
ind\_active=ind\_active.

What I got from simpeg.Report() is the following image:

> **[simpeg.Report()](https://wetransfer.com/downloads/8ff248391121103f52156ae559b0c97c20241023184727/e163b9?t_exp=1729968447&t_lsid=369ef660-7d31-43f6-9509-59aa05a164bf&t_network=link&t_s=download_link&t_ts=1729709247)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![santisoler](https://yyz2.discourse-cdn.com/free1/user_avatar/simpeg.discourse.group/santisoler/32/210_2.png) [@santisoler](https://simpeg.discourse.group/u/santisoler)\
**Post date:** [October 23, 2024, 7:06pm UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614/4 "2024-10-23T19:06:31Z")

</div>

Good to know that you solved it!

And yes, having different argument names for the active cells across the classes of SimPEG is not great. We already tackled that and in the next release (SimPEG v0.23.0) you’ll be able to pass `active_cells` instead of `ind_active`, `actInd` and `indActive` to all SimPEG classes and functions.

FYI, I couldn’t see the image you shared through that third-party service. You can drag images to the text box here in Discourse to easily share them. Moreover, if you do that we don’t rely on third-party services to be up and running in the future for seeing those images. But in this case, you could copy and paste the output of `simpeg.Report()` instead of sharing a screenshot, that’s actually better.

---

<div class="post-metadata">

**Author:** ![GoatSuey](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@GoatSuey](https://simpeg.discourse.group/u/GoatSuey)\
**Post date:** [October 30, 2024, 8:39pm UTC](https://simpeg.discourse.group/t/gravity-anomaly-inversion-issue/614/5 "2024-10-30T20:39:44Z")

</div>

Thank you for your answer. Good to know.
