-
Notifications
You must be signed in to change notification settings - Fork 69
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
Function to write GOC scores to a file #485
base: feature/gene_tree_benchmark_new
Are you sure you want to change the base?
Function to write GOC scores to a file #485
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/gene_tree_benchmark_new #485 +/- ##
===================================================================
- Coverage 61.37% 60.50% -0.87%
===================================================================
Files 206 195 -11
Lines 22877 22076 -801
Branches 3576 3576
===================================================================
- Hits 14040 13357 -683
+ Misses 7631 7513 -118
Partials 1206 1206 Continue to review full report at Codecov.
|
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.
For the purpose of this comment:
Not sure if these OSErrors should be tested at all. For some reason it rings a bell that the conclusion from one of the Dev Round Tables was no - because they originate from the system.
(And passing the tests) I have made a suggestion - this suggestion should mean you don't have to worry about what was discussed at the dev round table regarding testing OSErrors - and you just have to test that the message is printed and raises(CalledProcessError)
? Not sure if this is much simpler, but it is something that was suggested to me at some point 🤔
msg = f"Could not open a file '{output_file}' for writing." | ||
raise OSError(msg) from e |
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.
What about
msg = f"Could not open a file '{output_file}' for writing." | |
raise OSError(msg) from e | |
print(f"Could not open a file '{output_file}' for writing.") | |
sys.exit(1) |
Instead of raising OSError after having excepted it? I gather that the purpose of excepting and then raising it is to print the msg
for the user - I think this would achieve the same with less pain?
datacheck pipeline dependency module Search::Elasticsearh added
Description
A function to write GOC scores to a file.
Related JIRA tickets:
Overview of changes
New function and corresponding tests.
Testing
pytest
Notes
Not sure if these
OSErrors
should be tested at all. For some reason it rings a bell that the conclusion from one of the Dev Round Tables was no - because they originate from the system.PR review checklist