Skip to content

Commit

Permalink
Merge pull request #858 from Mailaender/wsd-peak-import
Browse files Browse the repository at this point in the history
Fixed HPLC-DAD .ocb peak import
  • Loading branch information
eselmeister authored Jan 5, 2022
2 parents 7a0380d + 6e5190e commit 90e0e0a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 Lablicate GmbH.
* Copyright (c) 2018, 2022 Lablicate GmbH.
*
* All rights reserved.
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 90e0e0a

Please sign in to comment.