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

FIX: prevent integer overflow when calculating azimuth in FURUNO scn files #138

Merged
merged 2 commits into from Oct 26, 2023

Conversation

kmuehlbauer
Copy link
Collaborator

@kmuehlbauer
Copy link
Collaborator Author

We can't really test this without having a file which contains that issue. Or we would need to think to refactor the code into functions we can test. Until now we just might have to live with the current state of affairs.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #138 (a6f85fb) into main (2bbb5cd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #138   +/-   ##
=======================================
  Coverage   88.32%   88.32%           
=======================================
  Files          20       20           
  Lines        3436     3436           
=======================================
  Hits         3035     3035           
  Misses        401      401           
Flag Coverage Δ
unittests 88.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
xradar/io/backends/furuno.py 91.41% <ø> (ø)

@kmuehlbauer
Copy link
Collaborator Author

@mgrover1 I'll go ahead and merge tomorrow. Will also do a new release then.

@giacant
Copy link

giacant commented Oct 25, 2023

We can't really test this without having a file which contains that issue. Or we would need to think to refactor the code into functions we can test. Until now we just might have to live with the current state of affairs.

I can give you more files with this problem if you need

@kmuehlbauer
Copy link
Collaborator Author

No worries @giacant, I was thinking about that refactor for some while now.

No need to have a file for this right now.

BTW, would you mind testing that branch? Just in case. 😀

@giacant
Copy link

giacant commented Oct 25, 2023

Yes, if you explain me how😀

@kmuehlbauer
Copy link
Collaborator Author

https://docs.openradarscience.org/projects/xradar/en/stable/installation.html

Section: From sources. Just clone from my fork and check out this very branch.

@giacant
Copy link

giacant commented Oct 25, 2023

I'm using anaconda 3, no matters?

@kmuehlbauer
Copy link
Collaborator Author

Yep, just create a new environment for that test. You can throw it away after that.

@giacant
Copy link

giacant commented Oct 25, 2023

Ok, I think i do that, now the versione of xradar is xradar 0.4.1.dev3+g2bbb5cd

But i still have the error when plot snc file

@kmuehlbauer
Copy link
Collaborator Author

@giacant That version is the latest version on main.

Try that, it should directly install this branch.

python -m pip install git+https://github.com/kmuehlbauer/xradar.git@fix-137

@giacant
Copy link

giacant commented Oct 25, 2023

OK, now it works!

@kmuehlbauer kmuehlbauer merged commit 8a6740e into openradar:main Oct 26, 2023
12 checks passed
@kmuehlbauer kmuehlbauer deleted the fix-137 branch October 26, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

integer overflow when calculating azimuth in FURUNO scn files
2 participants