Skip to content
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

Merged
merged 5 commits into from
Jan 18, 2025

Conversation

Alexander-Sol
Copy link
Contributor

When writing mzMLs, we round the m/z values to 4 decimal places

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.42%. Comparing base (5d9671a) to head (eab7238).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           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           
Files with missing lines Coverage Δ
mzLib/MassSpectrometry/MzSpectra/MzSpectrum.cs 91.38% <100.00%> (ø)

@@ -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));
Copy link
Member

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

@trishorts trishorts merged commit 98ea879 into smith-chem-wisc:master Jan 18, 2025
3 of 4 checks passed
@Alexander-Sol Alexander-Sol mentioned this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants