From 4a490099c59054d45de4d1a7d64bdcc9a75e0490 Mon Sep 17 00:00:00 2001 From: Chris Bielow Date: Wed, 22 Nov 2023 15:57:48 +0100 Subject: [PATCH] fix: add range to all Chroms, irrespective of type (in case we need individual ones later), e.g. in TOPPView --- src/openms/source/KERNEL/MSExperiment.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openms/source/KERNEL/MSExperiment.cpp b/src/openms/source/KERNEL/MSExperiment.cpp index f7b8dbea51a..b0d4366426a 100644 --- a/src/openms/source/KERNEL/MSExperiment.cpp +++ b/src/openms/source/KERNEL/MSExperiment.cpp @@ -287,8 +287,10 @@ namespace OpenMS // update intensity, m/z and RT according to chromatograms as well: for (ChromatogramType& cp : chromatograms_) { + // update range of EACH chrom, if we need them individually later + cp.updateRanges(); - // ignore TICs and ECs (as these are usually positioned at 0 and therefor lead to a large white margin in plots if included) + // ignore TICs and ECs for the whole experiments range (as these are usually positioned at 0 and therefor lead to a large white margin in plots if included) if (cp.getChromatogramType() == ChromatogramSettings::TOTAL_ION_CURRENT_CHROMATOGRAM || cp.getChromatogramType() == ChromatogramSettings::EMISSION_CHROMATOGRAM) { @@ -299,7 +301,6 @@ namespace OpenMS // ranges this->extendMZ(cp.getMZ());// MZ - cp.updateRanges(); this->extend(cp);// RT and intensity from chroms's range } }