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: use len(unique) to estimate unique entry #151

Merged
merged 4 commits into from Feb 22, 2024

Conversation

martinpaule
Copy link
Contributor

Addressed an issue in model.py, where having multiple distances between gates (either by manually setting the radar to have varying steps or by small float inaccuracies) causes the reading of a ODIM h5 file to crash, as the "if unique" can't resolve the condition for a multiple-element array.

More details on this in issue #150.

Martin Paule added 2 commits February 22, 2024 12:36
…en gates (either by manually setting the radar to have varying steps or by small float inaccuracies) causes the reading of a ODIM h5 file to crash. More info on this in issue openradar#150.
@kmuehlbauer
Copy link
Collaborator

Thanks @martinpaule, I'll fix the linter/style errors in another PR. Just hang on a bit.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e7b7a39) 88.33% compared to head (dc29ee1) 88.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #151   +/-   ##
=======================================
  Coverage   88.33%   88.33%           
=======================================
  Files          20       20           
  Lines        3439     3439           
=======================================
  Hits         3038     3038           
  Misses        401      401           
Flag Coverage Δ
unittests 88.33% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kmuehlbauer kmuehlbauer changed the title If unique fails on array FIX: use len(unique) to estimate unique entry Feb 22, 2024
@kmuehlbauer
Copy link
Collaborator

@martinpaule Looking good to me. Nothing to add for this simple fix.

Are you OK being mentioned in history.md? If so I'd merge this now and get a bug-fix release out in direct course.

@martinpaule
Copy link
Contributor Author

@kmuehlbauer Of course, feel free to mention me in history.md.

Thank You for all Your communications :)

@kmuehlbauer kmuehlbauer enabled auto-merge (squash) February 22, 2024 14:52
@kmuehlbauer kmuehlbauer merged commit fe853d3 into openradar:main Feb 22, 2024
12 checks passed
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.

Range inaccuracies make it unable to resolve 'if unique' statement in xradar/model.py, causing crash
2 participants