tidy3d
tidy3d copied to clipboard
validate single pixel mode source
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.