Skip to content

Fix wrap-doc formatting in pyOpenMS pxd files for autowrap parser - #8669

Merged
timosachsenberg merged 2 commits into
feature/pyopenms-documentation-improvementsfrom
copilot/sub-pr-8668
Jan 15, 2026
Merged

timosachsenberg merged 2 commits into
feature/pyopenms-documentation-improvementsfrom
copilot/sub-pr-8668

Conversation

Copilot AI commented Jan 15, 2026 •

Copy link
Copy Markdown
Contributor

The autowrap parser requires strict formatting for wrap-doc comments: blank continuation lines must use # (hash + two spaces), not bare #. Additionally, multi-line wrap-doc blocks must align with method body indentation.

Changes

  • FeatureXMLFile.pxd, IdXMLFile.pxd: Replaced bare # with # on blank continuation lines in class-level wrap-doc blocks
  • ModificationsDB.pxd: Fixed continuation line formatting in searchModifications method wrap-doc
  • MzMLFile.pxd: Corrected wrap-doc indentation for storeBuffer and loadBuffer from 16 to 12 spaces to match method body alignment

Example

Before (parser error):

# wrap-doc:
#  File adapter for idXML files
#
#  Provides methods to load and store identification data

After (correct):

# wrap-doc:
#  File adapter for idXML files
#  
#  Provides methods to load and store identification data

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai

coderabbitai Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

- 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]>
Copilot AI changed the title [WIP] Add wrap-doc documentation to pyOpenMS pxd files Fix wrap-doc formatting in pyOpenMS pxd files for autowrap parser Jan 15, 2026
Copilot AI requested a review from timosachsenberg January 15, 2026 21:06
@timosachsenberg
timosachsenberg marked this pull request as ready for review January 15, 2026 21:08
@timosachsenberg
timosachsenberg merged commit 7c98ff4 into feature/pyopenms-documentation-improvements Jan 15, 2026
@timosachsenberg
timosachsenberg deleted the copilot/sub-pr-8668 branch January 15, 2026 21:08
timosachsenberg added a commit that referenced this pull request Jan 16, 2026
* Add wrap-doc documentation to pyOpenMS pxd files

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]>

* Fix wrap-doc formatting in pyOpenMS pxd files for autowrap parser (#8669)

* 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]>

* Fix wrap-doc blank lines and loadBuffer param name

- 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]>

---------

Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants