Repository navigation
test(rl): use a stable sort in test_sorted_data_passes - #1415
Conversation
The test sorted an interleaved panel with pandas' default sort, the pattern that lnccbrown#1410 warns against. Use kind="stable", as the error message of validate_balanced_panel now recommends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Follow-up to #1411 (#1410), addressing the non-blocking nit from @krishnbera's review.
test_sorted_data_passessorted the interleaved panel with the default (non-stable) sort, i.e. the pattern RLSSM: the sort suggested by validate_balanced_panel scrambles the trial order within participants #1410 warns against. It now useskind="stable", as the error message recommends, with a short comment pointing to RLSSM: the sort suggested by validate_balanced_panel scrambles the trial order within participants #1410.validate_balanced_panel; no behaviour change.tests/rl/test_rl_utils.py: 14 passed (Windows 11, Python 3.12.11, pandas 3.0.6). ruff 0.15.20 format applied to the changed line only.I used an AI assistant (Claude Code) to make this change and draft this description.
Summary by CodeRabbit