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

Add stream merger, separator directives #68

Merged
merged 7 commits into from
Jun 14, 2019
Merged

Add stream merger, separator directives #68

merged 7 commits into from
Jun 14, 2019

Conversation

standage
Copy link
Owner

@standage standage commented Jun 14, 2019

This update introduces a couple new changes: a new tag.select.merge function for efficient merging of multiple sorted streams into a single stream; and a modification to the GFF3Writer class so that it will intermittently output separator directives in long stretches of simple (childless) features.


  • Full test coverage? Any additional tests that could easily be added?
  • API documentation up-to-date? Docstring examples?
  • Is the CHANGELOG up-to-date?

@codecov-io
Copy link

codecov-io commented Jun 14, 2019

Codecov Report

Merging #68 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #68   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          18     19    +1     
  Lines        1073   1114   +41     
  Branches      244    252    +8     
=====================================
+ Hits         1073   1114   +41
Impacted Files Coverage Δ
tag/__main__.py 100% <ø> (ø) ⬆️
tag/feature.py 100% <100%> (ø) ⬆️
tag/cli/merge.py 100% <100%> (ø)
tag/select.py 100% <100%> (ø) ⬆️
tag/writer.py 100% <100%> (ø) ⬆️
tag/cli/__init__.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3682d43...31feb4a. Read the comment docs.

@@ -108,3 +106,13 @@ def test_sum(capsys):

out, err = capsys.readouterr()
assert out.strip() == tag.pkgdata('sum-test-out.txt').read().strip()


def test_merge(capfd):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some capsys/capfd weirdness that needs to be sorted out. May as well drop the whole logging crap as it seems to create a lot of problems with capturing testing output.

@standage standage changed the title Stream merger, separator directives Add stream merger, separator directives Jun 14, 2019
@standage standage merged commit 4233572 into master Jun 14, 2019
@standage standage deleted the write-blocks branch June 14, 2019 18:31
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.

2 participants