Repository navigation
fix: skip window estimation for MS1 when no MS1 Maps are available - #8308
Conversation
WalkthroughThe change adds a defensive guard condition to the MS1 window estimation logic in SwathMapMassCorrection.cpp. The gate now requires ms1_maps to be non-empty before collecting MS1 IM points for window estimation, with an added clarifying comment explaining the new safeguard. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)src/openms/**/*.{cpp,h,hpp,cc,cxx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-08-29T19:09:45.997ZApplied to files:
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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 |
Description
This fixes and issue during MS1 window estimation logic in
SwathMapMassCorrection.cppif no MS1 map is present. The change ensures that window estimation for MS1 is only performed when MS1 maps are available, preventing potential errors when no MS1 maps are present.Logic control fix for MS1 window estimation:
SwathMapMassCorrection.cppto skip MS1 window estimation if there are no MS1 maps.Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit