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

invalid value encountered in sqrt mitigation #847

Open
apiszcz opened this issue Aug 28, 2023 · 2 comments
Open

invalid value encountered in sqrt mitigation #847

apiszcz opened this issue Aug 28, 2023 · 2 comments

Comments

@apiszcz
Copy link

apiszcz commented Aug 28, 2023

Hello, this error is not new, probably due to my data, is there any recommended approaches to reduce or eliminate this?

Lib\site-packages\stonesoup\measures.py:259: RuntimeWarning: invalid value encountered in sqrt
  return np.sqrt(super().__call__(state1, state2))
@trackestimate
Copy link

I saw this in another post, would something like this be possible for measures.py?

  •    if turn_rate[0] == 0:
    
  •        turn_rate = Matrix([np.finfo(float).eps])
    

@apiszcz
Copy link
Author

apiszcz commented Mar 17, 2024

The warning is also appearing:
Lib\site-packages\stonesoup\measures\state.py:260: RuntimeWarning: invalid value encountered in sqrt

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

2 participants