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

validate single pixel mode source #1676

Merged
merged 1 commit into from
May 6, 2024

Conversation

dmarek-flex
Copy link
Contributor

@dmarek-flex dmarek-flex commented May 3, 2024

Validate that mode sources have at least 3 cells (even with size 0 it is possible to pick up 2 cells, so I chose 2 as the limit).

Also included are some changes to make ruff happy and fix some other tests that were affected by this new validation step.

@dmarek-flex dmarek-flex linked an issue May 3, 2024 that may be closed by this pull request
@dmarek-flex dmarek-flex force-pushed the dmarek/val-single-pixel-mode-source branch 2 times, most recently from 2dbb0ab to 0c8abfd Compare May 3, 2024 17:44
@tylerflex tylerflex removed their request for review May 3, 2024 17:52
@dmarek-flex dmarek-flex force-pushed the dmarek/val-single-pixel-mode-source branch from 0c8abfd to a3e3504 Compare May 3, 2024 17:59
Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

Looks good, just a pretty minor comment in the validator. thanks @dmarek-flex for taking care of this so quickly!

tidy3d/components/simulation.py Outdated Show resolved Hide resolved
@dmarek-flex dmarek-flex force-pushed the dmarek/val-single-pixel-mode-source branch 2 times, most recently from 027db4f to 90d09ba Compare May 3, 2024 18:08
Copy link
Collaborator

@momchil-flex momchil-flex left a comment

Choose a reason for hiding this comment

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

Looks good, only it should apply to mode monitors too.

@dmarek-flex dmarek-flex force-pushed the dmarek/val-single-pixel-mode-source branch from 90d09ba to 4d7f723 Compare May 6, 2024 13:47
@dmarek-flex dmarek-flex force-pushed the dmarek/val-single-pixel-mode-source branch from 4d7f723 to 52a1bbe Compare May 6, 2024 13:48
@dmarek-flex dmarek-flex merged commit 7671664 into pre/2.7 May 6, 2024
16 checks passed
@dmarek-flex dmarek-flex deleted the dmarek/val-single-pixel-mode-source branch May 6, 2024 13:59
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.

Validate out single-pixel mode source or monitor in a non-0D sim
3 participants