dlce-eva / python-nexus

python-nexus - Generic nexus (.nex, .trees) reader/writer for python
BSD 2-Clause "Simplified" License
11 stars 3 forks source link

Fix another bug in detranslate #39

Closed SimonGreenhill closed 2 years ago

SimonGreenhill commented 2 years ago

The current version loses branch lengths on the terminals. This fixes it, and I never want to look at this code again.

codecov-commenter commented 2 years ago

Codecov Report

Merging #39 (5ad17be) into master (5e5ed8d) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #39   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           59        59           
  Lines         2930      2939    +9     
=========================================
+ Hits          2930      2939    +9     
Impacted Files Coverage Δ
tests/test_handler_TreeHandler.py 100.00% <ø> (ø)
src/nexus/handlers/__init__.py 100.00% <100.00%> (ø)
src/nexus/handlers/tree.py 100.00% <100.00%> (ø)
tests/test_regressions.py 100.00% <100.00%> (ø)

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 5e5ed8d...5ad17be. Read the comment docs.