Repository navigation
bugfix for writing genpept with long ids. - #3733
Conversation
Codecov ReportBase: 0.00% // Head: 82.07% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3733 +/- ##
===========================================
+ Coverage 0 82.07% +82.07%
===========================================
Files 0 294 +294
Lines 0 49392 +49392
===========================================
+ Hits 0 40539 +40539
- Misses 0 8853 +8853
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
mdehoon
left a comment
There was a problem hiding this comment.
Instead of commenting out lines, just remove them.
|
Why are you removing all those warnings anyway? |
That's a good question. Actually I didn't mean those last few commits to be part of the pull request (didn't realize, or maybe forgot, that Github updates pull requests with later commits to the same branch, I should have made a new branch for those). But to answer your question, I was trying to optimize the speed of the genbank parser, so I did profiling and found that those lines cause major performance hits and check for very rare conditions. I'll try to revert the branch back to the commit that I intended to include. |
|
Yes, updating the branch updates the pull request too. Very useful once you know to expect this. I wondered if the de-quoting change from regex to plain Python would be good or bad from a performance point of view. Avoiding the regex would be easier to read. |
|
avoiding the regexes is helpful for speed. The changes in that commit are all the result of profiling I did. All together the changes almost halve the parsing time (9 seconds to 5 seconds for the example I was profiling on). |
|
It has been years since I last profiled the GenBank parser, I guess we've built up some additional checks which come at a speed cost. Hopefully we can speed them up now you've flagged some hotspots. |
|
I made a commit reverting changes irrelevant for this pull request (except the one changing the quotes regex to checking the first and last characters). Sorry for the confusion. |
|
Note you've accidentally deleted the symlink Feel free to clean up the branch history (e.g. |
|
Ok, I tried. The history looks even more complicated now, so not sure if I did it right. |
|
The history looks cleaner now (no merges). If you're not familiar with git-rebase, it isn't immediately obvious how to use it to combine commits and re-write the commit messages. Don't worry about it. We can squash-and-merge with a commit comment about speeding up the quote removal, and addressing the false positive warning for #3732. |
|
Merged, thank you! |
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally,and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
Closes #3732
One line change as suggested in the issue post, plus a test.