Repository navigation
Add wrap-doc documentation to pyOpenMS pxd files - #8668
Conversation
Add comprehensive documentation to 34 pxd files including: - Core data structures (MSSpectrum, MSExperiment, MSChromatogram) - Feature classes (Feature, FeatureMap, ConsensusFeature, ConsensusMap) - Basic types (Peak1D, DataArrays, Param) - File I/O (MzMLFile, IdXMLFile, FeatureXMLFile, FASTAFile, etc.) - Quantitation methods (TMT, iTRAQ, AbsoluteQuantitation) - Database interfaces (ResidueDB, ModificationsDB, ProteaseDB, etc.) Changes include: - Class-level wrap-doc with usage examples - Method-level wrap-doc for constructors, getters, setters - Standardized boolean documentation to Python conventions (True/False) - Fixed typo "sorte" -> "sorted" in MSSpectrum.pxd - Removed trailing whitespace Co-Authored-By: Claude Opus 4.5 <[email protected]>
📝 WalkthroughWalkthroughThis PR primarily adds wrap-doc documentation across many pyOpenMS Cython binding (.pxd) files. Functional changes: new Pythonic/dict-like helper methods on Changes
Sequence Diagram(s)(omitted; changes are documentation-focused with only small API surface additions, not multi-component control-flow modifications) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
src/pyOpenMS/pxds/ModificationsDB.pxd (1)
58-75: Multiple wrap-doc continuation lines have formatting issues.Lines 60, 66, 70-71 use
#without the required 2 spaces. These empty continuation lines should use#(hash + 2 spaces) to maintain parser compatibility.Proposed fix
# wrap-doc: # Returns the best matching modification for the given delta mass and residue - # + # # Query the modifications DB to get the best matching modification with # the given delta mass at the given residue (NULL pointer means no result, # maybe the maximal error tolerance needs to be increased). Possible # input for CAM modification would be a delta mass of 57 and a residue # of "C". - # + # # Note: If there are multiple possible matches with equal masses, it # will choose the _first_ match which defaults to the first matching # UniMod entry. - # - # + # + # # :param residue: The residue at which the modifications occurssrc/pyOpenMS/pxds/ConsensusXMLFile.pxd (1)
29-29: FixgetOptions()signature: must return reference and add missing const overload.The
getOptions()method exists in C++ but the.pxddeclaration has two issues:
- Return type should be
PeakFileOptions&(mutable reference), notPeakFileOptions(value)- Missing the
const PeakFileOptions& getOptions() constoverloadThe C++ header declares both:
PeakFileOptions& getOptions();(line 61)const PeakFileOptions& getOptions() const;(line 64)Update the declaration to match both overloads.
src/pyOpenMS/pxds/FeatureMap.pxd (1)
31-63: Fix blank separator lines in all wrap-doc blocks to use#(hash + 2 spaces).The wrap-doc blocks contain 26 blank separator lines that use bare
#without the required trailing spaces. Wrap-doc continuation lines must use exactly#(hash + 2 spaces) or the autowrap parser will fail. Affected lines: 25, 28, 31, 35, 37, 43, 45, 47, 63, 74, 82, 88, 94, 100, 106, 112, 118, 124, 132, 138, 150, 152, 158, 164, 166, 172.Change all blank separator lines from
#to#:Example fix
- # + #Apply this change to all 26 affected lines.
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/pxds/FeatureXMLFile.pxd`:
- Around line 9-23: The wrap-doc block in FeatureXMLFile.pxd contains blank
continuation comment lines using just "#" which breaks the autowrap parser;
locate the wrap-doc comment (the block starting with "# wrap-doc:" in
FeatureXMLFile.pxd) and replace each bare "#" continuation line (the blank lines
within that block) with "# " (hash + two spaces) so every continuation line
uses the exact "# " format required by the autowrap parser.
In `@src/pyOpenMS/pxds/IdXMLFile.pxd`:
- Around line 9-22: The wrap-doc for IdXMLFile contains blank comment lines with
just '#' which breaks the parser; update the doc comment block used by IdXMLFile
(the wrap-doc header/comments) so every continuation line uses exactly '# '
(hash + two spaces) instead of a lone '#', i.e., change the blank comment lines
(and any other continuation lines missing the two spaces) to start with '# ' to
conform to the parser/coding guidelines.
In `@src/pyOpenMS/pxds/ModificationsDB.pxd`:
- Around line 27-32: The wrap-doc block in ModificationsDB.pxd contains a
continuation line starting with "# " instead of the required "# " (hash + two
spaces); update the continuation line(s) in the wrap-doc comment (the block
starting "Collects all modifications which have the given name as synonym") so
every continuation line uses exactly "# " to conform to the wrap-doc formatting
rules and avoid parser breakage.
In `@src/pyOpenMS/pxds/MzMLFile.pxd`:
- Around line 45-52: The wrap-doc continuation lines in the storeBuffer and
loadBuffer method declarations are over-indented; adjust the indentation so the
"# wrap-doc:" line and all following "# ..." lines align with the method body
indentation (12 spaces) rather than 16 spaces—match the pattern used by
isSemanticallyValid; update the wrap-doc blocks for storeBuffer(String & output,
MSExperiment exp) and loadBuffer(String & input, MSExperiment exp) so each
comment line starts at the same column as the method body.
🧹 Nitpick comments (1)
src/pyOpenMS/pxds/IdXMLFile.pxd (1)
23-23: Missing copy constructor declaration.Per project conventions, wrapped classes should declare both default and copy constructors for proper wrapper generation.
Proposed fix
IdXMLFile() except + nogil + IdXMLFile(IdXMLFile &) except + nogilBased on learnings, copy constructors are required in
.pxdfiles for all wrapped classes.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (36)
src/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/MSExperiment.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TraMLFile.pxd
🧰 Additional context used
📓 Path-based instructions (4)
src/pyOpenMS/pxds/**/*.pxd
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/pxds/**/*.pxd: Do not add Python-only method declarations to.pxdfiles - they attempt to wrap non-existent C++ methods
Ensure autowrap annotation format like# wrap-doc:is properly indented inside the class block with strict whitespace parsing
src/pyOpenMS/pxds/**/*.pxd: Declare default and copy constructors in.pxdfiles for all wrapped classes
Usecimportfor Cython imports, not Pythonimport, in.pxddeclaration files
For non-inheriting classes in.pxdfiles, usecdef cppclass ClassName:without a base class specification
Wrap-doc comments must use exactly#(hash + 2 spaces) for all continuation lines;#or#(1 space) will break the parser
Autowrap hints (wrap-ignore,wrap-as,wrap-iter-begin/end,wrap-instances,wrap-attach,wrap-upper-limit,wrap-inherits) control wrapping behavior in.pxdfiles
Files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
src/pyOpenMS/**/*.{py,pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Use 4-space indentation (PEP 8 standard) for Python and Cython files
Files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
src/pyOpenMS/**/*.pxd
📄 CodeRabbit inference engine (AGENTS.md)
src/pyOpenMS/**/*.pxd: Keep.pxdsignatures synchronized with C++ API changes; update or removewrap-ignorehints when wrapping changes
Do not add Python-only methods to.pxdfiles; use addons or_dataframes.pywrappers instead
Files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
src/**
📄 CodeRabbit inference engine (AGENTS.md)
File extensions should be lowercase, except for
ML,XML, andmzDatawhich use specific capitalization
Files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
🧠 Learnings (21)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pxd : Keep `.pxd` signatures synchronized with C++ API changes; update or remove `wrap-ignore` hints when wrapping changes
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: When making C++ API changes: update `.pxd` files, update pyOpenMS addons, update tests, and update relevant documentation; tag commits with `API`
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Wrap-doc comments must use exactly `# ` (hash + 2 spaces) for all continuation lines; `#` or `# ` (1 space) will break the parser
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Autowrap hints (`wrap-ignore`, `wrap-as`, `wrap-iter-begin/end`, `wrap-instances`, `wrap-attach`, `wrap-upper-limit`, `wrap-inherits`) control wrapping behavior in `.pxd` files
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Update `AUTHORS` file and `CHANGELOG` when submitting a PR; run/extend tests and update pyOpenMS bindings when needed
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pxd : Do not add Python-only methods to `.pxd` files; use addons or `_dataframes.py` wrappers instead
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files for all wrapped classes
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pxd : Keep `.pxd` signatures synchronized with C++ API changes; update or remove `wrap-ignore` hints when wrapping changes
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Autowrap hints (`wrap-ignore`, `wrap-as`, `wrap-iter-begin/end`, `wrap-instances`, `wrap-attach`, `wrap-upper-limit`, `wrap-inherits`) control wrapping behavior in `.pxd` files
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pxd : Do not add Python-only methods to `.pxd` files; use addons or `_dataframes.py` wrappers instead
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: When making C++ API changes: update `.pxd` files, update pyOpenMS addons, update tests, and update relevant documentation; tag commits with `API`
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Wrap-doc comments must use exactly `# ` (hash + 2 spaces) for all continuation lines; `#` or `# ` (1 space) will break the parser
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files for all wrapped classes
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TraMLFile.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/ResidueDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/StringDataArray.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use `cimport` for Cython imports, not Python `import`, in `.pxd` declaration files
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/FASTAFile.pxd
📚 Learning: 2025-06-16T15:48:09.667Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like `cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":`. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Applied to files:
src/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/ProteaseDB.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/ElementDB.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/RNaseDB.pxdsrc/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pyx : Keep addon methods minimal; avoid redundant aliases that duplicate C++ functionality
Applied to files:
src/pyOpenMS/pxds/CrossLinksDB.pxdsrc/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/Param.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.
Applied to files:
src/pyOpenMS/pxds/FloatDataArray.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/Peak1D.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IntegerDataArray.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/StringDataArray.pxd
📚 Learning: 2025-06-16T15:49:26.504Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Applied to files:
src/pyOpenMS/pxds/IsobaricQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifier.pxdsrc/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxdsrc/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxd
📚 Learning: 2025-04-07T21:16:06.557Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the `getIMData()` method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Applied to files:
src/pyOpenMS/pxds/MSSpectrum.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/openms/**/*.{h,cpp} : Use Doxygen documentation with `/** */` block comments and `@` tags (not backslash); `brief` is required
Applied to files:
src/pyOpenMS/pxds/RibonucleotideDB.pxdsrc/pyOpenMS/pxds/RNaseDB.pxd
📚 Learning: 2026-01-14T18:52:46.327Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T18:52:46.327Z
Learning: Applies to src/pyOpenMS/**/*.pyx : Avoid `cdef` typed variables for autowrap return values inside `def` methods; use Python type checks instead
Applied to files:
src/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Keep pyOpenMS addons minimal - only add methods that cannot be auto-generated (like `__repr__`, `__str__`), not redundant aliases
Applied to files:
src/pyOpenMS/pxds/Param.pxd
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-wheels-macos
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: cppcheck-test
🔇 Additional comments (64)
src/pyOpenMS/pxds/FloatDataArray.pxd (1)
16-32: Excellent documentation additions!The wrap-doc comments are properly formatted and follow all pyOpenMS conventions:
- Continuation lines correctly use
#(hash + 2 spaces)- Proper indentation maintained throughout the class body
- Clear, concise descriptions for all public methods
- Default and copy constructors appropriately documented
The reference to
get_peaksandset_peakson lines 18-19 is informative and helpful, correctly pointing users to the addon methods (referenced in line 8).src/pyOpenMS/pxds/IsobaricQuantifier.pxd (3)
13-17: LGTM!The class-level wrap-doc block is properly formatted with correct indentation and uses
#(hash + 2 spaces) for continuation lines as required by the autowrap parser. The documentation clearly describes the isotope correction and normalization functionality.
24-27: LGTM!The constructor wrap-doc comments correctly document each quantitation method variant. The inline format is appropriate for single-line documentation. Based on learnings, derived quantitation method classes only need their constructors declared, and this documentation appropriately describes each supported method type.
29-29: LGTM!The wrap-doc accurately describes the method's functionality of applying isotope correction and normalization to isobaric channel intensities.
src/pyOpenMS/pxds/FeatureXMLFile.pxd (2)
24-24: LGTM!Constructor declaration is properly formatted with
except + nogil. Moving the documentation to the class-level wrap-doc block is appropriate.
32-32: LGTM!Inline wrap-doc comment is properly formatted and accurately describes the method's behavior.
src/pyOpenMS/pxds/MzXMLFile.pxd (2)
14-27: LGTM - Well-formatted wrap-doc documentation.The class-level wrap-doc block follows the required formatting with
#(hash + 2 spaces) for continuation lines, proper indentation, and includes a helpful usage example with code block.
28-48: Documentation additions look good.Constructor and method documentation follows the proper wrap-doc formatting conventions. Both default and copy constructors are declared as required.
src/pyOpenMS/pxds/AbsoluteQuantitationMethodFile.pxd (1)
7-16: LGTM - Clean and properly formatted wrap-doc documentation.The class-level wrap-doc block correctly uses
#(hash + 2 spaces) for continuation lines. Inline wrap-doc comments for methods provide concise descriptions. Both default and copy constructors are declared as required per coding guidelines.src/pyOpenMS/pxds/Feature.pxd (3)
18-53: Comprehensive class-level documentation with usage example.The wrap-doc block provides excellent context on Feature's purpose, stored data, and usage conventions. The code example demonstrates typical usage patterns. Documentation follows proper formatting with hash + 2 spaces for continuation lines. Based on coding guidelines, wrap-doc continuation lines must use exactly
#(hash + 2 spaces).
55-106: Method documentation is thorough and well-structured.Quality-related methods (
getQuality,setQuality,getOverallQuality,setOverallQuality), subordinate feature methods, and spatial methods (encloses) are all properly documented with parameter descriptions and return value semantics.
107-183: Remaining method documentation follows consistent patterns.Convex hull methods, width/charge accessors, annotation state, and peptide identification methods all have appropriate wrap-doc comments with parameter and return value documentation.
src/pyOpenMS/pxds/IsobaricQuantitationMethod.pxd (1)
15-29: LGTM - Well-documented abstract base class.The class-level wrap-doc clearly explains the purpose of isobaric quantitation methods (TMT, iTRAQ). Method-level documentation provides concise descriptions for all public API methods. The abstract class markers (
wrap-ignore,ABSTRACT class) are correctly preserved alongside the new documentation.src/pyOpenMS/pxds/TMTSixPlexQuantitationMethod.pxd (1)
7-15: LGTM - Concise documentation for derived TMT method.The class-level wrap-doc appropriately describes the TMT 6-plex specifics (reporter ions at 126-131 m/z) without redeclaring inherited methods, which aligns with the established pattern for derived quantitation method classes. Both constructors are declared with inline wrap-doc comments. Based on learnings, derived classes only need constructor declarations since other methods are inherited from IsobaricQuantitationMethod.
src/pyOpenMS/pxds/Peak1D.pxd (1)
10-27: LGTM!The wrap-doc documentation is well-formatted with proper continuation line spacing (
#with 2 spaces), appropriate class-level description, and accurate method documentation. Default and copy constructors are correctly declared with inline docs. Based on learnings, the wrap-doc format follows the required conventions.src/pyOpenMS/pxds/ResidueDB.pxd (1)
10-24: LGTM!Class-level documentation accurately describes the singleton pattern and lazy-loading behavior for modified residues. The update to "Returns True" (line 24) correctly follows Python boolean conventions as noted in the PR objectives.
src/pyOpenMS/pxds/RibonucleotideDB.pxd (1)
11-21: LGTM!The wrap-doc documentation clearly describes the singleton database pattern and references the data source files. Method documentation for
getRibonucleotideandgetRibonucleotidePrefixaccurately describes their lookup behavior.src/pyOpenMS/pxds/TMTSixteenPlexQuantitationMethod.pxd (1)
7-15: LGTM!The wrap-doc block provides useful technical context (TMTpro 16-plex reagents, 126-134 m/z reporter ion range). Constructor documentation and
wrap-inheritsannotation are correctly maintained. Based on learnings, derived quantitation method classes only need to declare constructors as other methods are inherited from the base class.src/pyOpenMS/pxds/TMTTenPlexQuantitationMethod.pxd (1)
7-15: LGTM!Documentation style is consistent with other TMT plex quantitation method files in this PR. The technical description (126-131 m/z range, additional mass variants) provides useful context for users. Constructor documentation follows conventions.
src/pyOpenMS/pxds/ConsensusXMLFile.pxd (1)
8-23: LGTM! Well-formatted documentation block.The wrap-doc formatting is correct with proper
#(hash + 2 spaces) for continuation lines. The code example demonstrates practical usage with iteration over consensus features.src/pyOpenMS/pxds/TMTElevenPlexQuantitationMethod.pxd (1)
7-15: LGTM! Documentation is accurate and properly formatted.The wrap-doc block correctly describes TMT 11-plex as extending TMT 10-plex with the 131C channel. Both default and copy constructors are declared as required by the coding guidelines.
src/pyOpenMS/pxds/ModificationsDB.pxd (1)
84-88: NewgetInstance()overload with file path parameters.Both the no-argument and three-argument
getInstance()overloads are markedwrap-ignore, so this addition doesn't affect the Python API directly. The addon file (../addons/ModificationsDB.pyx) likely handles the Python-side instantiation.src/pyOpenMS/pxds/ConsensusMap.pxd (3)
22-34: LGTM! ColumnHeader documentation is well-structured.The wrap-doc block clearly describes the class purpose, and both default and copy constructors are properly declared and documented.
51-67: LGTM! Comprehensive ConsensusMap class documentation.The wrap-doc block provides clear context about ConsensusMap as a container for consensus elements with proper cross-references to ConsensusFeature. Both constructors are declared as required.
104-109: LGTM! Iterator documentation follows the autowrap pattern.The
begin()andend()methods correctly usewrap-iter-beginandwrap-iter-endhints with the added wrap-doc descriptions.src/pyOpenMS/pxds/MSSpectrum.pxd (3)
18-78: LGTM! Excellent comprehensive documentation with practical examples.The wrap-doc block provides thorough documentation including:
- Class overview with data access patterns
- Two practical code examples demonstrating spectrum creation, precursor setup, data arrays, and file I/O
- Proper formatting with
#continuation linesThis significantly improves API discoverability for Python users.
85-92: LGTM! Drift time and ion mobility method documentation.The documentation for
getDriftTimeUnit(),getDriftTimeUnitAsString(),setDriftTimeUnit(), andcontainsIMData()clearly describes their purpose.
126-130: LGTM! Operator and sorting method documentation.Documentation correctly uses Python conventions (
True/Falseinstead oftrue/false) for thesortByIntensityparameter description.src/pyOpenMS/pxds/TraMLFile.pxd (3)
8-23: LGTM! Well-structured class documentation.The wrap-doc block correctly uses hash + 2 spaces for continuation lines, and the usage example clearly demonstrates the TraML file workflow with
TargetedExperiment.
27-31: LGTM! Clear method documentation.The wrap-doc comments for
loadandstoreaccurately describe the targeted experiment data flow.
33-41: LGTM! Complete parameter and return documentation.The
isSemanticallyValidwrap-doc block properly documents all parameters and the return value with Python conventions (True/False).src/pyOpenMS/pxds/MzMLFile.pxd (2)
53-61: Same indentation pattern as storeBuffer.The
loadBufferwrap-doc block uses the same nested indentation pattern. This should be consistent withstoreBufferand verified for parser compatibility.
74-81: LGTM! Proper wrap-doc formatting for isSemanticallyValid.The wrap-doc block correctly uses
#(hash + 2 spaces) for continuation lines and comprehensively documents parameters and return value.src/pyOpenMS/pxds/CrossLinksDB.pxd (2)
14-16: LGTM! Clear singleton class documentation.The wrap-doc block correctly describes CrossLinksDB as a singleton and mentions OBO file support. Formatting uses proper
#continuation.
23-53: LGTM! Comprehensive method documentation.All method wrap-docs accurately describe functionality and use Python conventions (True/False for booleans). The inline format is appropriate for single-line descriptions.
src/pyOpenMS/pxds/MSChromatogram.pxd (4)
34-35: LGTM! Constructor documentation added.Clear inline wrap-docs for both the default constructor and copy constructor.
42-48: LGTM! Core method documentation.Accurate descriptions for
size,reserve,resize,operator[], andupdateRangesmethods.
74-83: LGTM! Detailed findNearest documentation.The wrap-doc comprehensively covers the method behavior, preconditions, parameters, return value, and exception handling.
60-72: Method name is correct. The C++ header confirmssortByIntensityis the correct spelling; no typo exists in the.pxddeclaration.src/pyOpenMS/pxds/RNaseDB.pxd (2)
10-12: LGTM! Clear singleton class documentation.The wrap-doc accurately describes RNaseDB as a singleton and references the data source file. Formatting is correct with
#continuation.
19-22: LGTM! Consistent method documentation.Method wrap-docs follow the same pattern as related database classes (ProteaseDB, CrossLinksDB) and use Python conventions (True/False).
src/pyOpenMS/pxds/TMTEighteenPlexQuantitationMethod.pxd (1)
7-15: LGTM!The wrap-doc documentation correctly uses the required
#(hash + 2 spaces) format for continuation lines, and the class description accurately describes the TMTpro 18-plex reagent capabilities. Constructor documentation is appropriately concise.src/pyOpenMS/pxds/ConsensusFeature.pxd (3)
21-35: LGTM!The wrap-doc documentation for the ConsensusFeature class and its constructors follows the correct format with
#(hash + 2 spaces) for continuation lines. The class description clearly explains the purpose of consensus features spanning multiple LC-MS/MS experiments.
41-57: LGTM!The method documentation is clear and follows the inline wrap-doc format correctly. The insert overloads and utility methods (size, clear, empty) are appropriately documented.
67-76: Data members are correctly synchronized with C++ API.The
numerator_ref_anddescription_members are properly declared in the.pxdfile and match the C++ implementation insrc/openms/include/OpenMS/KERNEL/ConsensusFeature.h. However, the class body has inconsistent indentation: the wrap-doc comment is indented at 8 spaces while the constructors and data members are at 6 spaces. Ensure all class contents use consistent indentation (should be 8 spaces for members inside thecdef cppclassblock at the current context level).src/pyOpenMS/pxds/StringDataArray.pxd (1)
16-31: LGTM!The wrap-doc documentation follows the correct format throughout. The class description clearly explains the purpose of StringDataArray for storing per-peak string annotations. All inline wrap-doc comments are appropriately concise.
src/pyOpenMS/pxds/ElementDB.pxd (1)
13-34: LGTM!The wrap-doc documentation is well-formatted with proper
#continuation lines. The class description accurately explains the singleton pattern and IUPAC data source. The boolean documentation correctly uses Python conventions (True/False) as noted in the PR objectives.src/pyOpenMS/pxds/AbsoluteQuantitationMethod.pxd (2)
9-13: LGTM!The class-level wrap-doc documentation correctly uses the
#format for continuation lines and provides a clear, comprehensive description of the AbsoluteQuantitationMethod class for IDMS quantitation.
18-49: LGTM!The method documentation is thorough and follows a consistent pattern. Each getter/setter pair is appropriately documented, and the documentation clearly explains domain-specific concepts like LOD (Limit of Detection), LOQ (Limit of Quantitation), and calibration curve parameters.
src/pyOpenMS/pxds/IntegerDataArray.pxd (1)
16-32: LGTM! Documentation additions follow wrap-doc conventions.The wrap-doc comments use the correct
#(hash + 2 spaces) format for continuation lines, and inline wrap-docs for constructors and methods are properly formatted. Both default and copy constructors are declared as required.src/pyOpenMS/pxds/ProteaseDB.pxd (1)
10-25: LGTM! Documentation additions are well-formatted.The class-level and method-level wrap-doc comments follow the correct formatting conventions with
#for continuation lines. The protected constructor remains correctly marked withwrap-ignore.src/pyOpenMS/pxds/FASTAFile.pxd (2)
14-35: LGTM! Excellent documentation with practical usage examples.The class-level documentation includes helpful code examples for both batch loading and streaming approaches. The wrap-doc formatting correctly uses
#for continuation lines.
84-101: LGTM! FASTAEntry documentation is comprehensive.The nested class documentation clearly describes the attributes and their meanings. Both default and copy constructors are properly declared.
src/pyOpenMS/pxds/MSExperiment.pxd (2)
25-54: LGTM! Comprehensive class documentation with usage example.The wrap-doc comments provide excellent context about MSExperiment's role as the in-memory representation of MS experiments. The Python code example demonstrates typical iteration patterns. Both default and copy constructors are properly documented.
61-112: LGTM! Method documentation is consistent and informative.The wrap-doc annotations for spectra/chromatogram accessors, sorting methods, and utility functions follow consistent formatting. Boolean return values correctly use Python conventions (True/False).
src/pyOpenMS/pxds/Param.pxd (3)
24-38: Python helper declarations withwrap-ignorefollow the correct pattern.These declarations document the dict-like Python API surface (implemented in
../addons/Param.pyx) while correctly usingwrap-ignoreto prevent autowrap from attempting to wrap non-existent C++ methods. This aligns with the guideline to use addons for Python-only methods rather than adding them directly to.pxdfiles.
40-108: LGTM! Comprehensive parameter management documentation.The wrap-doc comments for the C++ API methods are well-structured, with multi-line blocks properly using
#continuation format. The documentation clearly explains hierarchical key syntax (colons for sections) and method behaviors.
136-149: LGTM! TraceInfo documentation added correctly.The nested class documentation with constructor wrap-docs follows the established pattern. Both parameterized and copy constructors are declared.
src/pyOpenMS/pxds/IsobaricQuantifierStatistics.pxd (3)
13-22: LGTM! Well-documented members and constructor.The inline wrap-doc comments are clear, concise, and provide useful context for each statistic counter. The inclusion of example channel counts (4, 6, 8, 10, 11, 16, 18) is particularly helpful for users.
24-24: LGTM! Clear method documentation.The wrap-doc comment accurately describes the reset() method's behavior.
8-12: No issues found — wrap-doc formatting is correct.The multi-line wrap-doc in lines 8–11 follows the required format: initial
# wrap-doc:on line 8, continuation lines with#(hash + 2 spaces) on lines 9–11, and a blank line closing on line 12. This matches the standard pattern used throughout the codebase (e.g., FLASHHelperClasses.pxd).src/pyOpenMS/pxds/FeatureMap.pxd (3)
65-66: LGTM!Both default and copy constructors are properly declared with clear inline documentation. This follows the guideline to declare both constructor types for wrapped classes.
141-143: Good documentation for operator overloads.The
operator+andoperator+=(viaiadd) are clearly documented, which is helpful since Python's+and+=operators map to these methods.
184-187: LGTM!Iterator documentation is clear and the
wrap-iter-begin/wrap-iter-endhints are properly maintained, enabling Python'sfor feat in feature_map:iteration pattern as shown in the class example.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
|
@copilot In
In
In
In
|
|
@timosachsenberg I've opened a new pull request, #8669, to work on those changes. Once the pull request is ready, I'll request review from you. |
) * Initial plan * Fix wrap-doc formatting in pyOpenMS pxd files - Replace bare "#" with "# " in FeatureXMLFile.pxd wrap-doc - Replace bare "#" with "# " in IdXMLFile.pxd wrap-doc - Replace bare "#" with "# " in ModificationsDB.pxd wrap-doc - Fix indentation in MzMLFile.pxd storeBuffer/loadBuffer wrap-docs (16→12 spaces) Co-authored-by: timosachsenberg <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: timosachsenberg <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/pxds/MzMLFile.pxd`:
- Around line 45-61: The wrap-doc for loadBuffer in MzMLFile.pxd has a param
name mismatch: the signature uses "input" but the docstring uses "buffer";
update the wrap-doc to use the same name as the signature (change ":param
buffer:" to ":param input:" and adjust the description to "The buffer with the
data (i.e. string with content of an mzML file)") so the Python help output
matches the loadBuffer(const String& input, MSExperiment & exp) declaration.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/IdXMLFile.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
🚧 Files skipped from review as they are similar to previous changes (2)
- src/pyOpenMS/pxds/IdXMLFile.pxd
- src/pyOpenMS/pxds/ModificationsDB.pxd
🧰 Additional context used
📓 Path-based instructions (4)
src/pyOpenMS/pxds/**/*.pxd
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/pxds/**/*.pxd: Do not add Python-only method declarations to.pxdfiles - they attempt to wrap non-existent C++ methods
Ensure autowrap annotation format like# wrap-doc:is properly indented inside the class block with strict whitespace parsing
src/pyOpenMS/pxds/**/*.pxd: Declare default and copy constructors in.pxdfiles; usecimportnot Pythonimportfor Cython imports
Use exactly#(hash + 2 spaces) for allwrap-doc:documentation continuation lines; deviation causes parsing failure in autowrap
Use snake_case for Python-facing method and variable names in.pxdfiles and DataFrame columns
Files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
src/pyOpenMS/**/*.{pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Always declare default and copy constructors in
.pxdfiles; mark appropriate methods withexcept +for exception handling andnogilfor thread safety when applicable
Files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
**/*.{cpp,h,hpp,pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Add comments in plain English describing the next few lines; maintain at least ~5% of code as comments
Files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
**
📄 CodeRabbit inference engine (AGENTS.md)
**: Do not commit secrets, credentials, or.envfiles to the repository
Never build the project unless explicitly asked, as it is extremely resource-intensive
Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers
Always run and extend tests when making code changes; do not skip tests
Follow Gitflow workflow: develop features on forks, open PRs againstdevelopbranch, use commit message format[TAG1,TAG2] summarywith tags like NOP, DOC, COMMENT, API, INTERNAL, FEATURE, FIX, TEST, FORMAT, PARAM, IO, LOG, GUI, RESOURCE, BUILD
UpdateAUTHORSandCHANGELOGfiles when making significant contributions; addFixes#Nor `Closes `#Nto commit messages for issue tracking
When changing C++ APIs, update corresponding.pxdfiles and pyOpenMS addons; when adding TOPP tools, register insrc/topp/executables.cmakeandToolHandler.cpp; when changing file formats, updateFileHandler::NamesOfTypes[]and schemas
Files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
🧠 Learnings (15)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files; use `cimport` not Python `import` for Cython imports
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Implement `get_data_dict()` in Cython addons to return numpy arrays, and wrap with `get_df()` in `_dataframes.py` to add pandas functionality
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use snake_case for Python-facing method and variable names in `.pxd` files and DataFrame columns
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : In pyOpenMS addon files, indent custom methods with 4 spaces without declaring a class - methods are injected into the generated class
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not define new `cdef class` in addon files; only define Python-only methods with proper indentation; keep addons minimal
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.pyx : Autowrap returns Python strings; do NOT call `.decode()` on autowrap string return values; avoid `cdef` typed variables for autowrap return values inside `def` methods
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to **/*.{cpp,h,hpp,pyx,pxd} : Add comments in plain English describing the next few lines; maintain at least ~5% of code as comments
Applied to files:
src/pyOpenMS/pxds/FeatureXMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files; use `cimport` not Python `import` for Cython imports
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use snake_case for Python-facing method and variable names in `.pxd` files and DataFrame columns
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-wheels-macos
- GitHub Check: build-wheels-linux
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
🔇 Additional comments (6)
src/pyOpenMS/pxds/FeatureXMLFile.pxd (2)
9-24: LGTM! Wrap-doc block and constructor are properly formatted.The class-level wrap-doc documentation is comprehensive and follows the required format. Based on the prior review, the blank continuation lines (11, 14, 16, 18) have been corrected to use exactly
#(hash + 2 spaces) per autowrap parser requirements. The default constructor properly includesexcept + nogilmarkers.
32-32: LGTM! Method declaration with inline wrap-doc is correct.The
loadSizemethod declaration includes properexcept + nogilmarkers and the inline wrap-doc clearly describes the functionality.src/pyOpenMS/pxds/MzMLFile.pxd (4)
15-36: Clear, helpful class-level wrap-doc.The overview and usage example improve discoverability without touching behavior.
38-39: Constructors look consistent and safe.Good to see both default and copy constructors retained with
except + nogil.
71-71: Inline wrap-doc forgetOptionsis concise and useful.
74-81:isSemanticallyValiddocs are well-structured.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
- Change bare # to # (hash + 2 spaces) for blank lines in wrap-doc blocks across 13 pxd files (146 occurrences). The autowrap parser requires continuation lines to start with "# " or it stops parsing early. - Fix param name mismatch in MzMLFile.pxd loadBuffer(): change :param buffer: to :param input: to match the function signature. Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
src/pyOpenMS/pxds/ConsensusFeature.pxd (1)
67-76: Fix indentation inconsistency in Ratio struct.The wrap-doc comment at line 68 uses 8-space indentation, but the class body (constructors and data members) uses 6-space indentation. This inconsistency may cause autowrap parser issues given the strict whitespace parsing requirements.
Align the wrap-doc indentation with the existing class body indentation.
Proposed fix
cdef cppclass Ratio: - # wrap-doc:A simple struct for storing ratio information between features + # wrap-doc:A simple struct for storing ratio information between features Ratio() except + nogil # wrap-doc:Default constructor Ratio(Ratio rhs) except + nogil # wrap-doc:Copy constructorBased on learnings, autowrap requires proper indentation inside the class block with strict whitespace parsing.
src/pyOpenMS/pxds/ConsensusXMLFile.pxd (1)
29-29: UpdategetOptions()binding to preserve reference semantics from C++.The C++ signatures return references (
PeakFileOptions&andconst PeakFileOptions& const), but the Cython binding returns by value, creating unwanted copies. Changes to the returned object won't affect the original, breaking the documented "mutable access" contract. Update the binding to return a reference or clarify in the doc that it returns a copy.
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/pxds/MzMLFile.pxd`:
- Around line 53-61: The wrap-doc for loadBuffer in MzMLFile.pxd uses an
incorrect continuation indentation for the :raises: block (line with "#
Exception: ..."); update that line to use exactly two spaces after the hash ("#
") to match the autowrap parser rules, or alternatively move the raises text
inline with the preceding comment line so the entire :raises: description uses
the required "# " continuation format; ensure the change is applied to the
loadBuffer(const String& input, MSExperiment & exp) wrap-doc.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
src/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/ConsensusMap.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/FeatureMap.pxdsrc/pyOpenMS/pxds/MSChromatogram.pxdsrc/pyOpenMS/pxds/MSExperiment.pxdsrc/pyOpenMS/pxds/MSSpectrum.pxdsrc/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/TraMLFile.pxd
🚧 Files skipped from review as they are similar to previous changes (6)
- src/pyOpenMS/pxds/TraMLFile.pxd
- src/pyOpenMS/pxds/FeatureMap.pxd
- src/pyOpenMS/pxds/ConsensusMap.pxd
- src/pyOpenMS/pxds/FASTAFile.pxd
- src/pyOpenMS/pxds/MSSpectrum.pxd
- src/pyOpenMS/pxds/MSChromatogram.pxd
🧰 Additional context used
📓 Path-based instructions (4)
src/pyOpenMS/pxds/**/*.pxd
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/pxds/**/*.pxd: Do not add Python-only method declarations to.pxdfiles - they attempt to wrap non-existent C++ methods
Ensure autowrap annotation format like# wrap-doc:is properly indented inside the class block with strict whitespace parsing
src/pyOpenMS/pxds/**/*.pxd: Declare default and copy constructors in.pxdfiles; usecimportnot Pythonimportfor Cython imports
Use exactly#(hash + 2 spaces) for allwrap-doc:documentation continuation lines; deviation causes parsing failure in autowrap
Use snake_case for Python-facing method and variable names in.pxdfiles and DataFrame columns
Files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
src/pyOpenMS/**/*.{pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Always declare default and copy constructors in
.pxdfiles; mark appropriate methods withexcept +for exception handling andnogilfor thread safety when applicable
Files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
**/*.{cpp,h,hpp,pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Add comments in plain English describing the next few lines; maintain at least ~5% of code as comments
Files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
**
📄 CodeRabbit inference engine (AGENTS.md)
**: Do not commit secrets, credentials, or.envfiles to the repository
Never build the project unless explicitly asked, as it is extremely resource-intensive
Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers
Always run and extend tests when making code changes; do not skip tests
Follow Gitflow workflow: develop features on forks, open PRs againstdevelopbranch, use commit message format[TAG1,TAG2] summarywith tags like NOP, DOC, COMMENT, API, INTERNAL, FEATURE, FIX, TEST, FORMAT, PARAM, IO, LOG, GUI, RESOURCE, BUILD
UpdateAUTHORSandCHANGELOGfiles when making significant contributions; addFixes#Nor `Closes `#Nto commit messages for issue tracking
When changing C++ APIs, update corresponding.pxdfiles and pyOpenMS addons; when adding TOPP tools, register insrc/topp/executables.cmakeandToolHandler.cpp; when changing file formats, updateFileHandler::NamesOfTypes[]and schemas
Files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
🧠 Learnings (15)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files; use `cimport` not Python `import` for Cython imports
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Implement `get_data_dict()` in Cython addons to return numpy arrays, and wrap with `get_df()` in `_dataframes.py` to add pandas functionality
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use snake_case for Python-facing method and variable names in `.pxd` files and DataFrame columns
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.pyx : Autowrap returns Python strings; do NOT call `.decode()` on autowrap string return values; avoid `cdef` typed variables for autowrap return values inside `def` methods
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
Applied to files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Applied to files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Applied to files:
src/pyOpenMS/pxds/ModificationsDB.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Applied to files:
src/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Applied to files:
src/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files; use `cimport` not Python `import` for Cython imports
Applied to files:
src/pyOpenMS/pxds/ConsensusXMLFile.pxdsrc/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not define new `cdef class` in addon files; only define Python-only methods with proper indentation; keep addons minimal
Applied to files:
src/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-15T17:33:37.739Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.739Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use snake_case for Python-facing method and variable names in `.pxd` files and DataFrame columns
Applied to files:
src/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Keep pyOpenMS addons minimal - only add methods that cannot be auto-generated (like `__repr__`, `__str__`), not redundant aliases
Applied to files:
src/pyOpenMS/pxds/MzXMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxd
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : In pyOpenMS addon files, indent custom methods with 4 spaces without declaring a class - methods are injected into the generated class
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Applied to files:
src/pyOpenMS/pxds/MzMLFile.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Applied to files:
src/pyOpenMS/pxds/Feature.pxdsrc/pyOpenMS/pxds/ConsensusFeature.pxdsrc/pyOpenMS/pxds/MSExperiment.pxd
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-wheels-macos
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: cppcheck-test
🔇 Additional comments (27)
src/pyOpenMS/pxds/MzXMLFile.pxd (4)
14-27: Class-level wrap-doc follows the correct format.The wrap-doc block uses the required
#(hash + 2 spaces) format for all continuation lines, including empty lines. The code-block example is properly formatted with RST syntax. Based on learnings, this adheres to the autowrap parser requirements.
28-29: Constructors properly declared with exception handling and thread safety.Both default and copy constructors are present with
except + nogilmarkers, as required by the coding guidelines for.pxdfiles.
31-36: Load method documentation is correctly formatted.The method declaration includes
except + nogiland the wrap-doc block follows proper continuation line format.
38-48: Store method and remaining declarations are correctly documented.The
storemethod follows the same proper format asload. Thetransformmethod is correctly annotated withwrap-ignore, and the inline wrap-doc comments forgetOptionsandsetOptionsare appropriate for brief descriptions.src/pyOpenMS/pxds/MSExperiment.pxd (4)
22-52: LGTM!The class-level documentation block is well-structured with proper
#(hash + 2 spaces) continuation format throughout. The usage example provides helpful guidance for Python users.
53-55: LGTM!Both default and copy constructors are properly declared with
except + nogilmarkers, following the pyOpenMS binding conventions. Based on coding guidelines.
56-112: LGTM!All method-level wrap-doc annotations follow the correct inline format. Boolean documentation correctly uses Python conventions (e.g., "Returns True" on line 93). All methods maintain proper
except + nogilmarkers.
115-130: LGTM!The range manager accessors and convenience methods are well-documented. The wrap-doc descriptions clearly explain the purpose of each method.
src/pyOpenMS/pxds/ModificationsDB.pxd (5)
12-14: LGTM!The class-level wrap-doc block is properly formatted with
#(hash + 2 spaces) continuation lines, following the autowrap parser requirements.
27-32: LGTM!The wrap-doc block for
searchModificationsis correctly formatted. All continuation lines, including the blank line at line 29, now use the required#(hash + 2 spaces) format.
58-75: LGTM!The wrap-doc block for
getBestModificationByDiffMonoMassis well-documented with proper#continuation line formatting. The:paramand:return:documentation follows good practices for Python docstrings.
84-88: LGTM!Both
getInstance()overloads are correctly declared withexcept + nogiland marked# wrap-ignore. The Python-facing interface is handled separately in the addon file as referenced at line 6, which is the appropriate pattern for singleton classes.
42-42: LGTM!The inline wrap-doc uses Python convention (
True) for boolean documentation, consistent with the PR's goal of standardizing documentation to Python conventions.src/pyOpenMS/pxds/Feature.pxd (6)
13-50: LGTM! Well-structured class-level documentation.The wrap-doc block provides comprehensive documentation including purpose, stored data, conventions, and a practical code example. The continuation lines correctly use
#(hash + 2 spaces) format as required by the autowrap parser. Based on learnings, this format is critical to avoid parsing failures.
52-53: LGTM! Constructors properly declared.Default and copy constructors are correctly declared with
except + nogilmarkers for exception handling and thread safety. Based on learnings, this is the required convention for pyOpenMS .pxd files.
55-81: LGTM! Quality method documentation is clear and consistent.The wrap-doc blocks for quality-related methods correctly document parameters and return values with appropriate formatting. All continuation lines use the required
#format.
83-127: LGTM! Spatial and subordinate feature methods well-documented.Documentation correctly uses Python conventions (True/False for booleans on line 103) and provides helpful domain context about isotopic peaks and mass traces. All continuation lines follow the
#format requirement.
129-161: LGTM! Operator and inherited method documentation is appropriate.The commented-out lines (134-135) correctly indicate methods inherited from BaseFeature. The width and charge accessor documentation clearly explains the domain meaning (FWHM, charge state) with appropriate parameter descriptions.
163-182: LGTM! Annotation and identification method documentation is clear.The wrap-doc blocks provide helpful context about when peptide identifications are relevant (database search results) and correctly document the return types and parameters. All continuation lines follow the required
#format.src/pyOpenMS/pxds/ConsensusFeature.pxd (3)
16-29: LGTM!The wrap-doc formatting is correct with
#(hash + 2 spaces) for continuation lines. The documentation provides a clear description of the ConsensusFeature class purpose.
31-57: LGTM!The constructor and method declarations follow best practices:
- Default and copy constructors are properly declared
- All methods include
except + nogilfor exception handling and thread safety- Inline wrap-doc comments provide concise documentation
73-76: LGTM!The new
numerator_ref_anddescription_data members appropriately extend the Ratio struct to store additional ratio metadata.src/pyOpenMS/pxds/MzMLFile.pxd (4)
11-36: LGTM!The class-level wrap-doc documentation is well-structured with a helpful usage example. All continuation lines correctly use the
#(hash + 2 spaces) format.
38-39: LGTM!Both default and copy constructors are properly declared with
except + nogilas required by the coding guidelines.
45-51: LGTM!The wrap-doc block for
storeBufferis properly formatted with correct indentation and#continuation lines. The previous indentation issue has been addressed.
71-81: LGTM!The wrap-doc blocks for
getOptionsandisSemanticallyValidare properly formatted and serve as the correct reference pattern for other wrap-doc blocks in this file.src/pyOpenMS/pxds/ConsensusXMLFile.pxd (1)
8-24: Wrap-doc formatting looks compliant.Continuation lines use the required
#format and indentation aligns with the class block, so autowrap parsing should be stable. As per coding guidelines, wrap-doc continuation lines must use#and be properly indented.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
|
@jpfeuffer just quick look if formatting is right. |
Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]>
* Add comprehensive changelog for OpenMS 3.6.0 Includes changes from 96 merged PRs since version 3.5.0: - General: macOS Intel discontinued, Ubuntu 24.04, notarization in CI - Dependencies: Autowrap >= 0.26.0, Eigen minimum 3.4.0 - PyOpenMS: Pythonic methods (__len__, __str__, __repr__, __hash__), DataFrame support, new wrappers, string handling improvements - TOPP tools: MapAligner spectra transformation, FileInfo improvements, IsobaricWorkflow fixes, SageAdapter thread handling - OpenMS Library: PeakFileOptions, ParamIterator, SpectrumAnnotator - Breaking changes: Matrix<T> Eigen decoupling, API renames, FileWatcher move - Bug fixes: NucleicAcidSearchEngine, LogConfigHandler, decoy generation - Documentation: Targeted Quantitation, parameter annotations, AGENTS.md - Build: macOS notarization, Parquet support, pytest fixtures Co-Authored-By: Claude Opus 4.5 <[email protected]> * Add missing changelog entries for recently merged PRs Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Timo Sachsenberg <[email protected]>
Summary
wrap-docdocumentation to 34 pyOpenMS pxd fileshelp()and IDE autocompletionChanges
Core data structures:
Feature classes:
Basic types:
File I/O (with usage examples):
Quantitation methods:
Database interfaces:
Additional fixes
True/Falseinstead oftrue/false)Test plan
python3 -c "import pyopenms; help(pyopenms.MSSpectrum)"🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Breaking Changes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.