fix: metadata["boundary"] documents trial 0 on all code paths - #316
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…path (#315) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. 📝 WalkthroughWalkthroughThe simulator kernels now recompute full-result metadata boundaries from trial 0 parameters when trials exist. The simulator documentation defines trial 0 scope for boundary and trajectory metadata. Regression tests cover multiple kernel families and execution modes. ChangesMetadata boundary alignment
Estimated code review effort: 2 (Simple) | ~15 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ruff 0.16 expands the default lint rules and formats markdown code fences: ~300 findings appear in files this PR never touches, and any fresh PR fails 'Check styling'/'Linting' regardless of content (main last passed run_tests on July 16, before the 0.16 release). Pin to the 0.15 series that main actually passes; the 0.16 migration is filed separately.
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Closes #315
What was wrong
metadata["trajectory"](and the per-trial arrayst,z, ...) described trial 0.boundaries_all_np[0], sometadata["boundary"]silently depended on the code path (n_threads) taken.The fix
ddm_models,sequential_models,race_models,levy_models,ornstein_models,parallel_models).addmare untouched.Tests
tests/test_metadata_boundary_trial0.py: one model per touched kernel family (angle,weibull_cdf,ddm_seq2_angle_no_bias,race_no_bias_angle_4,levy_angle,ornstein_angle,ddm_par2_angle_no_bias), asserting (1) multi-trial boundary == single-row trial-0 boundary, (2) reversed row order flips the result (contract is "first row", not coincidence), (3)n_threads=1vsn_threads=4give identical boundary metadata. 17/21 of these fail on currentmain.Docs
simulator()docstring now states the contract: with full metadata,boundaryandtrajectorydescribe trial 0 (first row of θ); per-trial parameter arrays remain full-length. Previously last-trial on sequential paths.Downstream
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation
Tests