-
Notifications
You must be signed in to change notification settings - Fork 22
chore: v1 implementation of beam stub #2444
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2444 +/- ##
==========================================
- Coverage 91.56% 91.02% -0.54%
==========================================
Files 169 169
Lines 11859 11884 +25
==========================================
- Hits 10859 10818 -41
- Misses 1000 1066 +66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| ) | ||
|
|
||
| self.stub = BeamsStub(channel) | ||
| self.beam_commands_stub = BeamProfileDataStub |
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.
| self.beam_commands_stub = BeamProfileDataStub | |
| self.stub = BeamProfileDataStub(channel) |
| # Create the gRPC Line objects | ||
| lines = [] | ||
| for segment in kwargs["segments"]: | ||
| lines.append( | ||
| Line( | ||
| start=from_point3d_to_grpc_point(segment[0]), | ||
| end=from_point3d_to_grpc_point(segment[1]), | ||
| ) | ||
| ) |
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.
Not your fault - this is wrong in v0 too :(. Can you change both to use the from_line_to_grpc_line conversion?
Co-authored-by: Jacob Kerstetter <[email protected]>
Co-authored-by: Jacob Kerstetter <[email protected]>
…m/ansys/pyansys-geometry into ci/v1_implementation_of_beam_stub
| from_line_to_grpc_line( | ||
| Line( | ||
| start=from_point3d_to_grpc_point(segment[0]), | ||
| end=from_point3d_to_grpc_point(segment[1]), | ||
| ) |
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.
I think this has to be reverted.. the Line object here referes to the gRPC object already. Please revert
| from_line_to_grpc_line( | ||
| Line( | ||
| start=from_point3d_to_grpc_point(segment[0]), | ||
| end=from_point3d_to_grpc_point(segment[1]), | ||
| ) |
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.
Same comment.
| from_line_to_grpc_line( | ||
| Line( | ||
| start=from_point3d_to_grpc_point(segment[0]), | ||
| end=from_point3d_to_grpc_point(segment[1]), | ||
| ) | ||
| ) | ||
| ) |
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.
Same comment... I'm not sure how this is even working. You shouldn't be needing to pass through the from_line_to_grpc_line method.
| from_line_to_grpc_line( | ||
| Line( | ||
| start=from_point3d_to_grpc_point(segment[0]), | ||
| end=from_point3d_to_grpc_point(segment[1]), | ||
| ) | ||
| ) | ||
| ) |
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.
Same comment
Description
V1 implementation of beam stub.
Does not address the following issues
Issue linked
Please mention the issue number or describe the problem this pull request addresses.
Checklist
feat: extrude circle to cylinder)