-
Notifications
You must be signed in to change notification settings - Fork 48
Add quality tests #431
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
Add quality tests #431
Conversation
penelopeysm
left a comment
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.
Generally, I prefer the explicit if... else... end expressions
penelopeysm
left a comment
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.
Thank you for adding these :)
Is the failure on 1.12 expected?
|
Yeah, the failures on 1.12 are expected |
|
Thanks @ErikQQY and @penelopeysm. Please feel free to merge once you have two independent approvals! |
| Vector{P}(undef, n_steps) | ||
| else | ||
| z | ||
| Vector{P}(undef, 1) |
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.
Why was this changed? This creates unnecessary allocations in every step. There's no type inference issue here since FullTraj is a type parameter of a Val, so the compiler compiles and optimizes separate methods for FullTraj = true and FullTraj = false where these branches are eliminated.
Helps remove potential bugs and type instabilities