From db0629a4108dff30d8fffa71b1fcc314407ced5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 4 Jan 2022 17:01:12 +0100 Subject: [PATCH] Fix WSD peak import. --- .../chemclipse/internal/io/ChromatogramReader_1400.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chemclipse/plugins/org.eclipse.chemclipse.xxd.converter.supplier.chemclipse/src/org/eclipse/chemclipse/wsd/converter/supplier/chemclipse/internal/io/ChromatogramReader_1400.java b/chemclipse/plugins/org.eclipse.chemclipse.xxd.converter.supplier.chemclipse/src/org/eclipse/chemclipse/wsd/converter/supplier/chemclipse/internal/io/ChromatogramReader_1400.java index aeae5adb58..d206aeee97 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.xxd.converter.supplier.chemclipse/src/org/eclipse/chemclipse/wsd/converter/supplier/chemclipse/internal/io/ChromatogramReader_1400.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.xxd.converter.supplier.chemclipse/src/org/eclipse/chemclipse/wsd/converter/supplier/chemclipse/internal/io/ChromatogramReader_1400.java @@ -87,6 +87,7 @@ import org.eclipse.chemclipse.wsd.model.core.IScanWSD; import org.eclipse.chemclipse.wsd.model.core.implementation.ChromatogramPeakWSD; import org.eclipse.chemclipse.wsd.model.core.implementation.PeakModelWSD; +import org.eclipse.chemclipse.wsd.model.core.implementation.ScanSignalWSD; import org.eclipse.chemclipse.xxd.converter.supplier.chemclipse.internal.support.BaselineElement; import org.eclipse.chemclipse.xxd.converter.supplier.chemclipse.internal.support.IBaselineElement; import org.eclipse.chemclipse.xxd.converter.supplier.chemclipse.internal.support.IFormat; @@ -398,7 +399,7 @@ private IChromatogramPeakWSD readPeak(DataInputStream dataInputStream, IChromato float totalSignalScan = dataInputStream.readFloat(); IVendorScan peakMaximum = new VendorScan(); peakMaximum.setRetentionTime(retentionTime); - peakMaximum.adjustTotalSignal(totalSignalScan); + peakMaximum.addScanSignal(new ScanSignalWSD(0, totalSignalScan)); peakMaximum.setRelativeRetentionTime(relativeRetentionTime); int retentionTimeColumn1 = dataInputStream.readInt(); int retentionTimeColumn2 = dataInputStream.readInt();