Skip to content

docs: update demo and fix matrix input in pairwise_distances#55

Merged
Neclow merged 2 commits intosbhattlab:mainfrom
Neclow:demos_1.2.1
May 25, 2025
Merged

docs: update demo and fix matrix input in pairwise_distances#55
Neclow merged 2 commits intosbhattlab:mainfrom
Neclow:demos_1.2.1

Conversation

@Neclow
Copy link
Collaborator

@Neclow Neclow commented May 25, 2025

Fixes #42 and fixes the input for "pairwises_ditsances" (only accepted vectors, not matrices)

Bump python version: 1.2.0 --> 1.2.1

@Neclow Neclow requested a review from Copilot May 25, 2025 16:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the documentation demo and fixes input handling in the pairwise_distances function to properly accept both vectors and matrices while bumping the package version.

  • Update pairwise_distances function to validate for both vectors (ndim == 1) and matrices (ndim == 2).
  • Adjust documentation demo output and execution counts.
  • Bump version in Cargo.toml to reflect the update.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
py-phylo2vec/phylo2vec/metrics/pairwise.py Updated function parameter validation and docstring for pairwise_distances
py-phylo2vec/Cargo.toml Bumped package version from 1.2.0 to 1.2.1
docs/demo.ipynb Updated demo notebook cells and outputs to reflect changes in functionality

@Neclow Neclow requested a review from Copilot May 25, 2025 19:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #42 by updating the type annotations and documentation to ensure that the functions properly accept both vectors and matrices, including an enhanced input check in the pairwise_distances function. It also bumps the package version in Cargo.toml.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
py-phylo2vec/phylo2vec/metrics/pairwise.py Updated parameter name and added matrix check for pairwise distances.
py-phylo2vec/phylo2vec/io/writer.py Updated parameter type annotation in docstring.
py-phylo2vec/phylo2vec/base/pairs.py Updated docstrings to reflect tuple representation and np.ndarray type.
py-phylo2vec/phylo2vec/base/newick.py Updated parameter type annotation in docstring.
py-phylo2vec/phylo2vec/base/edges.py Updated parameter type annotation in docstring.
py-phylo2vec/phylo2vec/base/ancestry.py Updated parameter and return types to np.ndarray.
py-phylo2vec/Cargo.toml Bumped the package version from 1.2.0 to 1.2.1.

@Neclow Neclow merged commit 11dff23 into sbhattlab:main May 25, 2025
7 checks passed
@Neclow Neclow deleted the demos_1.2.1 branch October 16, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update demo (and paper?)

2 participants