Skip to content

Commit

Permalink
Deprecate PatristicDistanceMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 authored May 18, 2024
1 parent c925f10 commit fb4f357
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dendropy/calculate/treemeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@

import math
from dendropy.calculate import phylogeneticdistance
from dendropy.utility import deprecate

EULERS_CONSTANT = 0.5772156649015328606065120900824024310421

## legacy: will soon be deprecated

class PatristicDistanceMatrix(phylogeneticdistance.PhylogeneticDistanceMatrix):

def __init__(self, tree):
deprecate.dendropy_deprecation_warning(
message="PatristicDistanceMatrix is deprecated since Dendropy 5. "
"Use entropy. phylogenetic distance.PhylogeneticDistanceMatrix instead.",
)
phylogeneticdistance.PhylogeneticDistanceMatrix.__init__(self)
self.compile_from_tree(tree=tree)

Expand Down

0 comments on commit fb4f357

Please sign in to comment.