-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(hugr-py): IndexDfg
builder for appending operations by index
#1256
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
+ Coverage 86.98% 87.01% +0.02%
==========================================
Files 102 103 +1
Lines 19108 19163 +55
Branches 17015 17015
==========================================
+ Hits 16622 16675 +53
- Misses 1709 1711 +2
Partials 777 777
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Happy to see we are doing docs now :)
hugr-py/src/hugr/index_dfg.py
Outdated
as the incoming index. | ||
|
||
Args: | ||
com: Command to append. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
com: Command to append. | |
com: Command to append. | |
Raises: | |
IndexError: If any input index is not a tracked wire. |
hugr-py/src/hugr/index_dfg.py
Outdated
Args: | ||
coms: Commands to append. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Args: | |
coms: Commands to append. | |
Args: | |
coms: Commands to append. | |
Raises: | |
IndexError: If any input index to a command is not a tracked wire. |
hugr-py/src/hugr/index_dfg.py
Outdated
Args: | ||
*in_wires: Wires/indices to set as outputs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Args: | |
*in_wires: Wires/indices to set as outputs. | |
Args: | |
*in_wires: Wires/indices to set as outputs. | |
Raises: | |
IndexError: If an index is not a tracked wire. |
get_wire -> tracked_wire
Closes #1242
More test ideas welcome!
BEGIN_COMMIT_OVERRIDE
feat(hugr-py):
TrackedDfg
builder for appending operations by indexEND_COMMIT_OVERRIDE