-
Notifications
You must be signed in to change notification settings - Fork 295
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
(Re?)introduce consume_fasta progress indicator #1410
base: master
Are you sure you want to change the base?
Conversation
Current coverage is 90.76%@@ master #1410 diff @@
==========================================
Files 57 57
Lines 7264 7268 +4
Methods 0 0
Messages 0 0
Branches 434 434
==========================================
+ Hits 6592 6597 +5
+ Misses 606 605 -1
Partials 66 66
|
Two thoughts --
|
I think a small class sitting on its own would be better than something inline. All it needs are variables for update interval and message, and an update method (mayhaps with optional extra info string); then ReadParser can inherit from it, and it can be instantiated on its own when necessary. Also gives a place to stick future logging and debugging output. Unless exactly this was what @ctb means, and if so, disregard :) |
logging + debugging extensions FTW.
|
Are you thinking this would be best implemented in Python land or C/C++ land? It looks like the ReadParser class is implemented using CPython and C structs, so it's not initially clear to me how we would have ReadParser inherit from a minimal "progress indicator" class. I know inheritance and polymorphism are possible in C, but it can get hairy. Forgive me if I'm missing something obvious. :-/ |
Bleh, forgot about the unholy mixture of C and C++ code. This would definitely need to be implemented in C/C++ land to not cause a massive performance hit. To have it be in Python land and be a C++ class, the checklist is basically:
|
no disagreements or really anything intelligent to say at all ;). sounds good.
not urgent, tho.
|
Still more to track down, but this takes care of
abund-dist-single
.make test
Did it pass the tests?make clean diff-cover
If it introduces new functionality inscripts/
is it tested?make format diff_pylint_report cppcheck doc pydocstyle
Is it wellformatted?
without a major version increment. Changing file formats also requires a
major version number increment.
ChangeLog
?http://en.wikipedia.org/wiki/Changelog#Format
changes were made?
tested for streaming IO?)