-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a small system test for sage2lib #9
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
===========================================
+ Coverage 43.20% 60.86% +17.66%
===========================================
Files 8 8
Lines 250 253 +3
===========================================
+ Hits 108 154 +46
+ Misses 142 99 -43 ☔ View full report in Codecov by Sentry. |
Hmm... the Windows error here seems to originate from Pyteomics within ms2ml 🤔 Do we actually care about supporting Windows here? Probably not. |
@@ -24,7 +24,11 @@ def read_peptides(peptides, qvalue): | |||
polars.DataFrame | |||
The parsed and filtered peptides. | |||
""" | |||
peptide_df = pl.read_csv(peptides, separator="\t") | |||
try: |
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.
Request: Could we add an error/warning message saying the fallback is occurring?
peptide_df = pl.read_csv(peptides, separator="\t") | ||
try: | ||
peptide_df = pl.read_parquet(peptides) | ||
except pl.exceptions.ComputeError: |
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.
R: Can we add a check of the error to make sure the compute error comes from the parsing and not anywhere else?
import pytest | ||
|
||
|
||
@pytest.mark.parametrize("ftype", ["parquet", "csv"]) |
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.
Note: Since the whole XZ situation ive become a bit more paranoid ... we whould make a PR so the .parquet is generated from a .csv ... just to have no binaries in source control.
This PR adds a very small test for sage2lib.