-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bugs in the docs for the nonlinear example #80
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #80 +/- ##
=======================================
Coverage 96.32% 96.32%
=======================================
Files 7 7
Lines 381 381
=======================================
Hits 367 367
Misses 14 14 ☔ View full report in Codecov by Sentry. |
trajectories = map(chains) do sample | ||
replay(sample.trajectory) | ||
end | ||
particles = hcat([trajectory.model.f.X for trajectory in trajectories]...); |
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.
This should have been (without using the suggestion tool, since I messed up everything last time):
particles = hcat([trajectory.model.f.X for trajectory in chains]...); # pulling it from the chains directly
and you should be able to remove the replay
part
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 would need to read up on the replay idea here, but replacing
trajectories = map(chains) do sample replay(sample.trajectory) end particles = hcat([trajectory.model.f.X for trajectory in trajectories]...);
with
particles = hcat([trajectory.model.f.X for trajectory in chains]...); # pulling it from the chains directly
gives me the error:
ERROR: type PGSample has no field model
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.
This fixes this issue
particles = hcat([chain.trajectory.model.X for chain in pgas_chains]...)
but seems to hit another one with the way we copy models around. I'll open an issue and look into it
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.
Maybe we can keep the (possibly redundant) replay part for now and merge my PR? That would be better than the severely broken version merged at the moment.
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.
Agree, since the fix pretty much requires #75 to be merged first
Thanks @mattiasvillani and @FredericWantiez! |
The changes in PR #79 led to the following bugs (some edits in #79 following the review strangely got lost in the final version):
This PR fixes all four issues.