Skip to content

Commit e94cf14

Browse files
Treat as if it is never set when last spectrum is set as 0.
1 parent 233b898 commit e94cf14

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

RawFileParser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ private static void ProcessFile(ParseInput parseInput)
148148
lastScanNumber = rawFile.RunHeaderEx.LastSpectrum;
149149

150150
// Check for empty file
151-
if (lastScanNumber < 1)
152-
{
153-
throw new RawFileParserException("Empty RAW file, no output will be produced");
154-
}
151+
//if (lastScanNumber < 1)
152+
//{
153+
//throw new RawFileParserException("Empty RAW file, no output will be produced");
154+
//}
155155
}
156156

157157
if (parseInput.MetadataFormat != MetadataFormat.NONE)

Writer/MzMlSpectrumWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public override void Write(IRawDataPlus rawFile, int firstScanNumber, int lastSc
466466
_writer.WriteEndElement(); // spectrumList
467467

468468
index = 0;
469-
var chromatograms = ConstructChromatograms(firstScanNumber, lastScanNumber);
469+
var chromatograms = ConstructChromatograms();
470470
if (!chromatograms.IsNullOrEmpty())
471471
{
472472
// ChromatogramList
@@ -841,7 +841,7 @@ private void Serialize<T>(XmlSerializer serializer, T t)
841841
/// <param name="firstScanNumber">the first scan number</param>
842842
/// <param name="lastScanNumber">the last scan number</param>
843843
/// <returns>a list of chromatograms</returns>
844-
private List<ChromatogramType> ConstructChromatograms(int firstScanNumber, int lastScanNumber)
844+
private List<ChromatogramType> ConstructChromatograms()
845845
{
846846
var chromatograms = new List<ChromatogramType>();
847847

0 commit comments

Comments
 (0)