-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mzml writer now rounds to 4 decimal places #821
Mzml writer now rounds to 4 decimal places #821
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #821 +/- ##
=======================================
Coverage 77.42% 77.42%
=======================================
Files 223 223
Lines 33213 33213
Branches 3431 3431
=======================================
Hits 25714 25714
Misses 6932 6932
Partials 567 567
|
@@ -135,7 +136,8 @@ public void TestWriting(string filePath, string outfile, int loop) | |||
Assert.That(readInScan.OneBasedScanNumber.Equals(writtenScan.OneBasedScanNumber)); | |||
Assert.That(readInScan.MsnOrder.Equals(writtenScan.MsnOrder)); | |||
Assert.That(readInScan.IsCentroid.Equals(writtenScan.IsCentroid)); | |||
Assert.That(readInScan.MassSpectrum.Equals(writtenScan.MassSpectrum)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use CollectionAssert.IsEqualsTo() to if you want an exact match of each element. It is also much faster
When writing mzMLs, we round the m/z values to 4 decimal places