Skip to content

fix/py-phylo2vec: rust binding call in to_edges#31

Merged
Neclow merged 4 commits intosbhattlab:mainfrom
Neclow:fix_to_edges_py
May 14, 2025
Merged

fix/py-phylo2vec: rust binding call in to_edges#31
Neclow merged 4 commits intosbhattlab:mainfrom
Neclow:fix_to_edges_py

Conversation

@Neclow
Copy link
Collaborator

@Neclow Neclow commented May 14, 2025

Bug fix to be pushed to a 1.1.1 patch release

@Neclow Neclow requested a review from Copilot May 14, 2025 13:46
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 addresses a bug by updating the Rust binding call within the to_edges conversion function and includes additional test cases to verify the vector conversions via edges and ancestry. Key changes include:

  • Updating test names and adding new tests in test_base.py for verifying vector conversion consistency.
  • Changing the function call in to_edges from core.to_edges to core.get_edges and updating its type signature in edges.py.
  • Bumping version numbers and updating project metadata in Cargo.toml and pixi.toml.

Reviewed Changes

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

File Description
py-phylo2vec/tests/test_base.py Renamed tests for clarity and added new edge/ancestry validation tests.
py-phylo2vec/phylo2vec/base/edges.py Updated type signatures and corrected rust binding function call.
py-phylo2vec/Cargo.toml Updated project version from 1.1.0 to 1.1.1
pixi.toml Updated version and author metadata for consistency.

@Neclow Neclow merged commit c4b4756 into sbhattlab:main May 14, 2025
7 checks passed
@Neclow Neclow deleted the fix_to_edges_py branch May 14, 2025 13:58
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.

2 participants