Skip to content

non-integer tpow breaks fk migration #39

@seanbemis

Description

@seanbemis

I installed GPRPy in a conda environment using python 3.12.4. I've been testing out a number of processing sequences to get a well-gained radargram and I'm quite happy with a tpow of 1.5. However, when I run the fk migration after a tpow = 1.5, the profile display comes up blank. The terminal has come up a couple different errors when this happens. Here is the last error I was presented with:

C:\Users\xxxxxx\anaconda3\envs\gprpy_env\Lib\site-packages\gprpy\toolbox\gprpyTools.py:249: RuntimeWarning: invalid value encountered in power
factor = np.reshape(twtt**(float(power)),(len(twtt),1))
8192it [00:00, 15318.82it/s]
C:\Users\xxxxxx\anaconda3\envs\gprpy_env\Lib\site-packages\gprpy\gprpyGUI.py:783: RuntimeWarning: All-NaN slice encountered
stdcont = np.nanmax(np.abs(proj.data)[:])

Now, the fk migration works fine every time I try it if I don't apply a tpow gain. But, after quite a bit of testing, I discovered that the fk migration does work if I use a tpow value of 1 or 2 - so it seems that decimal point tpow values appears to be causing a problem in my setup of GPRPy.

Is this a python version issue? Any other ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions