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

alwaysProvidesOrientation Patch and Test #300

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

Eric-Vin
Copy link
Collaborator

Description

Fix for alwaysProvidesOrientation

Issue Link

#294

Checklist

  • I have tested the changes locally via pytest and/or other means
  • I have added or updated relevant documentation
  • I have autoformatted the code with black and isort
  • I have added test cases (if applicable)

Additional Notes

N/A

@Eric-Vin Eric-Vin linked an issue Aug 15, 2024 that may be closed by this pull request
3 tasks
@Eric-Vin Eric-Vin requested a review from dfremont August 15, 2024 20:29
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.40%. Comparing base (5f134ad) to head (2a99767).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #300      +/-   ##
==========================================
+ Coverage   91.36%   91.40%   +0.04%     
==========================================
  Files          54       54              
  Lines       13537    13542       +5     
==========================================
+ Hits        12368    12378      +10     
+ Misses       1169     1164       -5     
Files Coverage Δ
src/scenic/syntax/veneer.py 91.48% <100.00%> (+0.15%) ⬆️

... and 5 files with indirect coverage changes

Copy link
Collaborator

@dfremont dfremont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for now -- let's still plan to remove the sampling heuristic entirely.

@dfremont dfremont merged commit e6b5f26 into main Aug 15, 2024
26 checks passed
@dfremont dfremont deleted the AlwaysProvidesOrientationPatch branch August 15, 2024 22:57
@amolenaar
Copy link

@dfremont @Eric-Vin Thanks for the workaround. I can achieve the same by throwing a RejectionException from the external parameter if no sampler is present.

Does this have effects down the line, if it cannot determine if the sample has an orientation (that's why it does the sampling IIRC)?

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

Successfully merging this pull request may close these issues.

External sampler does not work with object positioning
3 participants