Skip to content
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

MeshOverrideStructure only Box #2107

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

tylerflex
Copy link
Collaborator

fixes #2105

@tylerflex tylerflex force-pushed the tyler/override_structure_box branch 2 times, most recently from 853c559 to 9ecd908 Compare December 5, 2024 19:22
if not isinstance(val, Box):
log.warning(
"Override structures should be 'Box' as of 'tidy3d' version 2.8. "
f"Given type of '{type(val)}'. Converting to bounding box."
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about Given type of '{type(val)}, using '{type(val)}.bounding_box' instead.? Just as an extra hint to the user that if they pass geometry.bounding_box in their override structure definition they can avoid the warning.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed

@tylerflex tylerflex force-pushed the tyler/override_structure_box branch from 9ecd908 to 1cee826 Compare December 6, 2024 13:53
@tylerflex tylerflex force-pushed the tyler/override_structure_box branch from 1cee826 to 3df6d84 Compare December 6, 2024 13:56
@momchil-flex momchil-flex merged commit 55f3b89 into pre/2.8 Dec 6, 2024
15 checks passed
@momchil-flex momchil-flex deleted the tyler/override_structure_box branch December 6, 2024 15:50
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.

Override structures support cylinder, sphere, polyslab causing confusion
3 participants