Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-integer tpow breaks fk migration #39

Open
seanbemis opened this issue Sep 11, 2024 · 0 comments
Open

non-integer tpow breaks fk migration #39

seanbemis opened this issue Sep 11, 2024 · 0 comments

Comments

@seanbemis
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant