-
Notifications
You must be signed in to change notification settings - Fork 103
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
Heuristic Sampling Improvements #287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the sense of the main test is backwards (rejections should ordinarily not be allowed at compile time), so we'd better add a test making sure it works correctly. I have a refactoring suggestion above too.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #287 +/- ##
==========================================
- Coverage 91.32% 91.27% -0.06%
==========================================
Files 54 54
Lines 13515 13528 +13
==========================================
+ Hits 12343 12348 +5
- Misses 1172 1180 +8
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! If you want to fix the issue of having to set a fixed color in the test by changing DrivingObject.lane
etc. to use self.position
instead of self
in this PR, go ahead; otherwise we can make a new one.
Went ahead and made the change. Please go ahead and take a final look and merge when you get the chance! |
Description
Improves heuristic sampling functionality in the veneer. Now everything should raise RejectionException, which is converted to an InvalidScenarioError at a higher level if appropriate.
Issue Link
#256
Checklist
pytest
and/or other meansAdditional Notes