Repository navigation
[doc-sync] docs: update MSExperiment::reset() comment to include chromatograms - #9215
Merged
timosachsenberg merged 1 commit intoApr 24, 2026
Conversation
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
deleted the
doc-sync-msexperiment-reset-20260424-a8c67a023ac77037
branch
April 24, 2026 05:10
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inMSExperiment.hwas not updated and still read:This omits chromatograms, making the documentation inaccurate.
Changes
Source files that triggered this review:
src/openms/source/KERNEL/MSExperiment.cpp—reset()now clearschromatograms_in addition tospectra_(added in Fix MSExperiment::reset() to clear chromatograms, preventing data duplication on reload #9211)Documentation files updated:
src/openms/include/OpenMS/KERNEL/MSExperiment.h— Updated the one-line Doxygen comment forreset()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.