Skip to content

Conversation

@aborgna-q
Copy link
Collaborator

Removes another use of HugrInternals::portgraph

@aborgna-q aborgna-q requested a review from lmondada May 8, 2025 14:56
@aborgna-q aborgna-q requested a review from a team as a code owner May 8, 2025 14:56
@aborgna-q aborgna-q requested a review from tatiana-s May 8, 2025 14:56
@codecov
Copy link

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 94.36620% with 4 lines in your changes missing coverage. Please review.

Project coverage is 82.10%. Comparing base (c844d90) to head (fb470ec).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
hugr-core/src/hugr/hugrmut.rs 94.02% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2174   +/-   ##
=======================================
  Coverage   82.09%   82.10%           
=======================================
  Files         227      227           
  Lines       39801    39786   -15     
  Branches    35900    35885   -15     
=======================================
- Hits        32676    32666   -10     
+ Misses       5303     5299    -4     
+ Partials     1822     1821    -1     
Flag Coverage Δ
python 85.64% <ø> (ø)
rust 81.71% <94.36%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aborgna-q
Copy link
Collaborator Author

aborgna-q commented May 8, 2025

Oh, I should also have done insert_subgraph. I'll add it to this PR in a bit.

Edit: Done!

other: &H,
) -> InsertionResult<H::Node, Self::Node> {
let (inserted_entrypoint, node_map) = insert_hugr_internal(self, root, other);
let res = insert_hugr_internal(self, root, &other);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let res = insert_hugr_internal(self, root, &other);
let res = insert_hugr_internal(self, root, other);

Copy link
Contributor

@lmondada lmondada left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I'll wait for the impl for insert_subgraph

@lmondada lmondada self-requested a review May 8, 2025 16:40
@aborgna-q aborgna-q added this pull request to the merge queue May 8, 2025
Merged via the queue into main with commit 719723b May 8, 2025
27 checks passed
@aborgna-q aborgna-q deleted the ab/insert_hugr branch May 8, 2025 17:00
This was referenced May 8, 2025
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.

3 participants