Skip to content

Commit a26a5ab

Browse files
committed
Precursor logic streamlined
The same precursor selection logic as for other file formats TBD: Move some of the service functions to the SpectrumWriter base class
1 parent 14afbf6 commit a26a5ab

File tree

2 files changed

+241
-57
lines changed

2 files changed

+241
-57
lines changed

Writer/MzMlSpectrumWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
12861286
int? charge = trailerData.AsPositiveInt("Charge State:");
12871287
double? monoisotopicMz = trailerData.AsDouble("Monoisotopic M/Z:");
12881288
double? ionInjectionTime = trailerData.AsDouble("Ion Injection Time (ms):");
1289-
double? isolationWidth = trailerData.AsDouble("MS" + (int) scanFilter.MSOrder + " Isolation Width:");
1289+
double? isolationWidth = trailerData.AsDouble("MS" + msLevel + " Isolation Width:");
12901290
double? FAIMSCV = null;
12911291
if (trailerData.AsBool("FAIMS Voltage On:").GetValueOrDefault(false))
12921292
FAIMSCV = trailerData.AsDouble("FAIMS CV:");

0 commit comments

Comments
 (0)