Skip to content

Commit

Permalink
remove comments; eigen_values -> eigenvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbin973 committed Nov 18, 2024
1 parent 89e3b27 commit 81cbecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -8626,7 +8626,7 @@ def _genetic_relatedness_vector_individual(
samples, sample_individuals = (
ij[:, 0],
ij[:, 1],
) # sample node index, individual of those nodes
)
x = (
arr - arr.mean(axis=0) if centre else arr
) # centering within index in rows
Expand Down Expand Up @@ -8858,7 +8858,7 @@ def _G(x):
if drop_windows:
U, D, Q = U[0], D[0], Q[0]

pca_result = PCAResult(factors=U, eigen_values=D, range_sketch=Q, error_bound=E)
pca_result = PCAResult(factors=U, eigenvalues=D, range_sketch=Q, error_bound=E)

return pca_result

Expand Down Expand Up @@ -10455,7 +10455,7 @@ class PCAResult:
The principal component factors. Columns are orthogonal, with one entry per sample
or individual (see :meth:`pca <.TreeSequence.pca>`).
"""
eigen_values: np.ndarray
eigenvalues: np.ndarray
"""
Eigenvalues of the genetic relatedness matrix.
"""
Expand Down

0 comments on commit 81cbecf

Please sign in to comment.