'module' object has no attribute '_getfreqs'

11 views
Skip to first unread message

Leonardo Miquelutti

unread,
May 14, 2019, 1:48:41 PM5/14/19
to fati...@googlegroups.com
Leo,

I've been getting this error whenever I try to run both gravmag_imaging_geninv.py and gravmag_imaging_sandwich.py from your cookbook

I looked up here and didn't find _getfreqs.
 
I am on Windows 8 (yeah, I know it!), with Fatiando 0.5, and don't remember how I installed it.

image.png

Do you know what's going on?

😘
--
Leonardo Guimarães Miquelutti

Leonardo Uieda

unread,
May 14, 2019, 8:08:50 PM5/14/19
to fati...@googlegroups.com
Hi Leo

I think that was a bug in 0.5 because of some changes we made in fatiando.gravmag.transform
We missed it because the imaging module wasn't covered by tests (which is a great example of why automated testing is so important).
This should be fixed in the development version, though.
Here are the docs: http://www.fatiando.org/dev/

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/fatiando/CACVk%3D4bhR36pJ-6qvvT3weR%3DxsC0BxG1n5fgg1ZFYyX7t1%3DL8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Leonardo Miquelutti

unread,
May 15, 2019, 7:12:09 PM5/15/19
to fati...@googlegroups.com
Hi Leo,
  1. I created a new environment,
  2. installed the dependencies following these instructions,
  3. then installed the development version through
    pip install https://github.com/fatiando/fatiando/archive/master.zip
    but it didn't solve.
I checked your transform.py file at GitHub from what I believe is the development version, but couldn't find the function.

Maybe would you have changed _getfreqs to _fftfreqs?


For more options, visit https://groups.google.com/d/optout.


--
Leonardo Guimarães Miquelutti

Leonardo Uieda

unread,
May 16, 2019, 10:33:18 PM5/16/19
to fati...@googlegroups.com
We discussed this in private but I want to post it for the record.
The imaging module is currently broken because of changes in the transform module.
Since we're moving things to Harmonica (https://github.com/fatiando/harmonica), we're not going to fix this now.
There is probably be a better version of these methods in Harmonica in the future (it would be great to get some help on this).
--
Leonardo Uieda

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

Reply all
Reply to author
Forward
0 new messages