Skip to content

[doc-sync] docs: update MSExperiment::reset() comment to include chromatograms - #9215

Merged
timosachsenberg merged 1 commit into
developfrom
doc-sync-msexperiment-reset-20260424-a8c67a023ac77037
Apr 24, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
doc-sync-msexperiment-reset-20260424-a8c67a023ac77037

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

The implementation of MSExperiment::reset() was updated in #9211 to also clear chromatograms (preventing data duplication on reload). However, the Doxygen comment on the declaration in MSExperiment.h was not updated and still read:

Clear all internal data (spectra, ranges, metadata)

This omits chromatograms, making the documentation inaccurate.

Changes

Source files that triggered this review:

Documentation files updated:

  • src/openms/include/OpenMS/KERNEL/MSExperiment.h — Updated the one-line Doxygen comment for reset() from
    /// Clear all internal data (spectra, ranges, metadata)
    to
    /// Clear all internal data (spectra, chromatograms, ranges, metadata)

Why this change is necessary

The comment on reset() is the only documentation for this method and was factually incorrect after #9211: it did not mention that chromatograms are now cleared. Users relying on the comment to understand what state is reset would be misled.

Generated by Documentation Sync Agent · ◷

The implementation of reset() was updated in #9211 to also clear
chromatograms, preventing data duplication on reload. The Doxygen
comment on the declaration in MSExperiment.h still said only
"spectra, ranges, metadata" — update it to accurately reflect
that chromatograms are also cleared.

Co-authored-by: Copilot <[email protected]>
@timosachsenberg
timosachsenberg merged commit bd4b895 into develop Apr 24, 2026
3 checks passed
@timosachsenberg
timosachsenberg deleted the doc-sync-msexperiment-reset-20260424-a8c67a023ac77037 branch April 24, 2026 05:10
@github-actions github-actions Bot mentioned this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant