Repository navigation
[pyOpenMS][TEST] Pin Bruker TDF frame=/MS:1002818 native ID parsing (#9460) - #9524
Conversation
…penMS#9460) The C++ SpectrumNativeIDParser_test already has an "[EXTRA] Bruker TDF frame= / MS:1002818" section, but the Python testSpectrumNativeIDParser.py stopped at scan=/MS:1000776 and never exercised the frame= path. This closes the Python half of the §6 [AUTO] task in the 3.6.0 pre-release testing plan (issue OpenMS#9460): add SDK-free MS:1002818/frame= cases to *both* parser tests. Asserts, mirroring the C++ section: - isNativeID() recognizes the "frame=" prefix - getRegExFromNativeID() targets the scan=<int> token for frame= IDs - extractScanNumber(..., "MS:1002818") returns the scan= integer, including the trailing-precursor= and merged multi-scan= cases Verified against the built nanobind bindings. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-15 14:40:56.247446243 +0000
+++ AUTHORS.new 2026-06-15 14:41:01.430857522 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds 22 lines of test assertions to ChangesBruker TDF Native ID Test Coverage
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
What
Adds Bruker timsTOF
.d(TDF) native-ID cases to the PythontestSpectrumNativeIDParser.py, covering theframe=<F> scan=<S>format and its CV accession MS:1002818.Why
This closes the Python half of a
[AUTO]task in the OpenMS 3.6.0 pre-release testing plan (#9460, §6 — vendor readers):The C++
SpectrumNativeIDParser_test.cppalready has an[EXTRA] Bruker TDF frame= / MS:1002818 native IDsection (indevelop), but the Python test stopped atscan=/MS:1000776and never exercised theframe=path. The Bruker DDA/DIA-PASEF native-ID round-trip was therefore asserted only in the SDK-gated reader test — never on the SDK-free Python parser surface that runs on public CI.What it asserts (mirrors the C++ section)
isNativeID()recognizes theframe=prefix (incl. a trailingprecursor=token).getRegExFromNativeID()targets thescan=<int>token forframe=IDs.extractScanNumber(..., "MS:1002818")returns thescan=integer, including the trailing-precursor=and merged multi-scan=(last-wins) cases.Test plan
Tests only — no production code changed. Verified against the built nanobind bindings:
Part of #9460.
🤖 Generated with Claude Code
Summary by CodeRabbit