Repository navigation
docs(pyOpenMS): fix stale/missing MSChromatogram and Mobilogram docstrings - #9812
Conversation
…rings MSChromatogram.findNearest() carried a copy-pasted sortByPosition() docstring instead of describing its own binary-search-nearest-RT behavior. MSChromatogram.clear()/sortByIntensity() and Mobilogram.sortByPosition()/sortByIntensity() had no docstring at all, and Mobilogram.clear() still said "Clear all peaks" even though #9795 made it also clear the parallel data arrays. Bring all of these in line with the corresponding Doxygen comments in MSChromatogram.h / Mobilogram.h.
📝 WalkthroughWalkthroughPython binding docstrings for ChangesBinding documentation
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/pyOpenMS/bindings/bind_chromatogram.cpp`:
- Around line 93-97: Update the sortByIntensity binding docstring to document
both ordering modes: the default reverse=False sorts peaks by ascending
intensity, while reverse=True sorts them by descending intensity; retain the
existing metadata-ordering description.
- Around line 110-116: Update the documentation string for the MSChromatogram
clear binding to state that peaks, data arrays, and ranges are always cleared,
while descriptive metadata is cleared only when clear_meta_data is true. Keep
the existing conditional details and clear method behavior unchanged.
In `@src/pyOpenMS/bindings/bind_kernel.cpp`:
- Around line 1644-1646: Update the documentation string on the Mobilogram
binding’s clear method to state that clear() also resets the mobility and
intensity ranges, while preserving the existing description of peak and parallel
data array removal.
- Around line 1606-1610: Update the sortByIntensity binding docstring to
document the reverse parameter, state that the default ascending sort becomes
descending when reverse=True, and retain the existing note that metadata arrays
remain aligned.
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f99d49ae-5d7d-479a-9b0e-274073e8f46d
📒 Files selected for processing (2)
src/pyOpenMS/bindings/bind_chromatogram.cppsrc/pyOpenMS/bindings/bind_kernel.cpp
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Fixes Applied SuccessfullyFixed 2 file(s) based on 4 unresolved review comments. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 2 file(s) based on 4 unresolved review comments. Co-authored-by: CodeRabbit <[email protected]>
Audited recently merged develop PRs against CHANGELOG (last backfill attempt was #9811/#9806, covering up to #9803). Four merged PRs since then were missing entries: #9824 (IsobaricWorkflow empty-feature pruning fix), #9523 (new CI build/release workflows), #9812 (pyOpenMS docstring fixes) and #9798 (Bioconda nightly deploy fix, whose two prior backfill attempts were closed unmerged). #9821 (internal TODO-comment correction, no behavior/doc change) and #9805/#9803 (test-only / already covered by the #9792 write-up) were left out, consistent with this repo's convention of not logging test-infrastructure-only or already-documented changes. Claude-Session: https://claude.ai/code/session_01WU21QuzvxLH5BuSxatVikX Co-authored-by: Claude <[email protected]>
…ioconda CI fix) (#9819) Routine sweep of recently merged develop PRs for changelog coverage. Two merged PRs had no entry: #9812 (pyOpenMS MSChromatogram/Mobilogram docstring fixes) and #9798 (nightly Bioconda deploy rebase->merge fix). All other merged PRs since the last changelog update were already covered. Claude-Session: https://claude.ai/code/session_01SzRvETHmfTpnH53PY5p9gD Co-authored-by: Claude <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
MSChromatogram.findNearest() carried a copy-pasted sortByPosition()
docstring instead of describing its own binary-search-nearest-RT
behavior. MSChromatogram.clear()/sortByIntensity() and
Mobilogram.sortByPosition()/sortByIntensity() had no docstring at all,
and Mobilogram.clear() still said "Clear all peaks" even though #9795
made it also clear the parallel data arrays. Bring all of these in
line with the corresponding Doxygen comments in MSChromatogram.h /
Mobilogram.h.
Summary by CodeRabbit