Repository navigation
Changing PEP default option to be the score-based Ispline - #403
Conversation
📝 WalkthroughWalkthroughThe PR flips the default PEP interpolation behavior from rank-based to interpolating. The ChangesPEP Interpolation Defaults
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/Caller.cpp (1)
395-398: ⚡ Quick winKeep a deprecated
--ip-pepalias for compatibility.Line 395 and Line 512 introduce
--rank-pepand remove the old flag behavior; this can break existing scripts unexpectedly. Consider accepting--ip-pepas a deprecated alias (with warning) for at least one release.Suggested compatibility patch
cmd.defineOption("", "rank-pep", "Use rank instead of score as independent variable when calculating PEPs.", "", TRUE_IF_SET); + cmd.defineOption("", + "ip-pep", + "DEPRECATED: use --rank-pep. Use rank instead of score as independent variable when calculating PEPs.", + "", TRUE_IF_SET); @@ if (cmd.isOptionSet("rank-pep")) { useInterpolatingPep_ = false; } + if (cmd.isOptionSet("ip-pep")) { + useInterpolatingPep_ = false; + if (VERB > 0) { + std::cerr << "Warning: --ip-pep is deprecated; use --rank-pep instead." + << std::endl; + } + }Also applies to: 512-514
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/Caller.cpp` around lines 395 - 398, Add a deprecated alias for the removed flag by accepting the old "--ip-pep" option in the same place where "cmd.defineOption(..., \"rank-pep\", ...)" is defined: register "--ip-pep" as an equivalent option that sets the same internal flag or variable used by the new "rank-pep" option, and emit a one-time warning (via existing logging/console mechanism) informing users that "--ip-pep" is deprecated and will be removed in a future release; ensure the parsing logic (where the code reads the rank-pep flag) treats either option as identical so existing scripts continue to work.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/Caller.cpp`:
- Around line 395-398: Add a deprecated alias for the removed flag by accepting
the old "--ip-pep" option in the same place where "cmd.defineOption(...,
\"rank-pep\", ...)" is defined: register "--ip-pep" as an equivalent option that
sets the same internal flag or variable used by the new "rank-pep" option, and
emit a one-time warning (via existing logging/console mechanism) informing users
that "--ip-pep" is deprecated and will be removed in a future release; ensure
the parsing logic (where the code reads the rank-pep flag) treats either option
as identical so existing scripts continue to work.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 0270619c-ff4c-4c77-b56d-d6fd5716f616
📒 Files selected for processing (2)
src/Caller.cppsrc/Scores.h
Summary by CodeRabbit
Release Notes