-
Notifications
You must be signed in to change notification settings - Fork 35
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 trapezoid construction for negative phi and older Geant4 #1227
Conversation
@mrguilima I've removed the validation checking from phi:
If the value were part of the shape's data, we should regularize it so that there's a one-to-one correspondence between values and shapes produced. However, since phi just gets preprocessed into the same points, there's no need to impose extra effort on the user (e.g. it's ok if they want to specify the rotation as 3/4 turn instead of -1/4 turn). |
Is the proposed removal of validation satisfactory @mrguilima ? |
Yes, it looks good! |
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.
LGTM.
Thanks to @mrguilima for pointing out that there was an error in the calculation.
Also fixes #1223 (comment) .