Check peak count range - #26
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change constrains CLI peak counts to 0–5000. It also stops C++ peak selection when no candidates remain and asserts that parsed peak counts are non-negative. ChangesPeak count handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Peak-count inputs are bounded and selection stops safely when candidates run out. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
Can you elaborate when/why people would actually want to set / use these directly?
Please paste the actual description / reasoning into the commit message, so we can make sense of commits offline without relying on github being up and still hosting ancient discussions. |
This does not add new user facing API. The options were there before, and what is fixed by the PR is that you no longer can specify values like -1 or 2000000 because these don't make sense. So the idea of the PR is to make the existing options safer, not to add anything or remove anything. Now if you want to discuss removing user facing API we already have, that is a different story. First what it does (and why changing it could help): The options specify how many peaks (normalized and unnormalized) peaks2grid uses. Tweaking I see two options here:
Also we haven't systematically tested that 250 / 250 is really the best setting, so it may make sense to run a whole test suite with different peak counts and then possibly adjust the hard coded defaults.
|
Ok, then we should track that task. Please file a bug report with a description what exactly you recommend for testing. |
Makes sense, created new issue: #29. |
Enforce sensible limits for --norm-peak-count and --raw-peak-count arguments for imagewmark get.
See #21, F05.
Summary by CodeRabbit
Bug Fixes
Improvements