Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
eaton-lab committed Feb 9, 2025
1 parent dcbf27f commit a4b6d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toytree/pcm/src/traits/phylosignal_k.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import pandas as pd
from toytree.core import ToyTree
from toytree.pcm import get_vcv_matrix_from_tree
from scipy.optimize import minimize_scalar, shgo
from scipy.optimize import minimize_scalar
from loguru import logger


Expand Down Expand Up @@ -109,7 +109,7 @@ def phylogenetic_signal_k(
Example
-------
>>> tree = toytree.rtree.unittree(ntips=10, seed=123, treeheight=2.0)
>>> data = tree.pcm.simulate_continuous_brownian(1.0, tips_only=True)
>>> data = tree.pcm.simulate_continuous_bm(1.0, tips_only=True)
>>> tree.pcm.phylogenetic_signal_k(tree, data)
>>> # {"K": ..., "P-value": ..., ...}
"""
Expand Down Expand Up @@ -328,7 +328,7 @@ def _likelihood(theta: float, V: np.ndarray, E: np.ndarray, y: np.ndarray) -> fl

# generate test data
tree = toytree.rtree.unittree(ntips=50, treeheight=10., seed=123)
tree.pcm.simulate_continuous_brownian(
tree.pcm.simulate_continuous_bm(
rates=[5.0, 0.5], tips_only=True, seed=123, inplace=True
)

Expand Down

0 comments on commit a4b6d7e

Please sign in to comment.