Skip to content

Commit

Permalink
API: renamed app from piqtree_jc_distances to piqtree_jc_dists
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinHuttley authored and rmcar17 committed Nov 20, 2024
1 parent 0f9bf34 commit 20c8ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/piqtree2/_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def piqtree_random_trees(

@composable.define_app
@extend_docstring_from(nj_tree)
def piqtree_jc_distances(
aln: cogent3.Alignment | cogent3.ArrayAlignment,
def piqtree_jc_dists(
aln: c3_types.AlignedSeqsType,
) -> c3_types.PairwiseDistanceType:
return jc_distances(aln)

Expand All @@ -105,6 +105,6 @@ def piqtree_nj(dists: c3_types.PairwiseDistanceType) -> cogent3.PhyloNode:
"piqtree_phylo",
"piqtree_fit",
"piqtree_random_trees",
"piqtree_jc_distances",
"piqtree_jc_dists",
"piqtree_nj",
]
2 changes: 1 addition & 1 deletion tests/test_app/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_piqtree_random_trees(


def test_piqtree_jc_distances(five_otu: ArrayAlignment) -> None:
app = get_app("piqtree_jc_distances")
app = get_app("piqtree_jc_dists")
dists = app(five_otu)

assert (
Expand Down

0 comments on commit 20c8ff9

Please sign in to comment.