Skip to content

Commit

Permalink
handle NaN from ion injection time
Browse files Browse the repository at this point in the history
  • Loading branch information
rrad committed Jan 14, 2025
1 parent b966ccd commit 29edae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Monocle/File/RawReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ public System.Collections.IEnumerator GetEnumerator()
break;
case "Ion Injection Time (ms):":
scan.IonInjectionTime = double.Parse(value);
if (!double.IsFinite(scan.IonInjectionTime)) {
scan.IonInjectionTime = 0;
}
break;
case "Elapsed Scan Time (sec):":
scan.ElapsedScanTime = double.Parse(value);
Expand Down

0 comments on commit 29edae1

Please sign in to comment.