-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add Named Selections query to geometric entities #2356
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 #2356 +/- ##
==========================================
- Coverage 95.20% 95.19% -0.02%
==========================================
Files 168 168
Lines 11103 11174 +71
==========================================
+ Hits 10571 10637 +66
- Misses 532 537 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
RobPasMue
left a comment
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.
Some comments! Looks pretty good though :)
| @ensure_design_is_active | ||
| def get_named_selections(self) -> list["NamedSelection"]: # noqa: D102 | ||
| return self._template.get_named_selections(self) |
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.
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.
It should probably be done at the body level. I will change this
| named_selections = get_design_from_body(body).named_selections | ||
|
|
||
| included_ns = [] | ||
| for ns in named_selections: |
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.
| named_selections = get_design_from_body(body).named_selections | |
| included_ns = [] | |
| for ns in named_selections: | |
| included_ns = [] | |
| for ns in get_design_from_body(self).named_selections: |
| if self.parent_component is None: | ||
| raise ValueError("Design point does not have a parent component.") | ||
|
|
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.
Is this even possible? Shouldn't it only be created from a modeling perspective? What's the case when a DesignPoint gets created without parent component?
Description
Issue linked
Closes #2326
Checklist
feat: extrude circle to cylinder)