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
Sweep Fabrication #1309
Sweep Fabrication #1309
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 10.04%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Codecov Report
@@ Coverage Diff @@
## main #1309 +/- ##
==========================================
- Coverage 70.14% 69.97% -0.18%
==========================================
Files 363 364 +1
Lines 21468 21569 +101
Branches 3074 3086 +12
==========================================
+ Hits 15058 15092 +34
- Misses 5524 5583 +59
- Partials 886 894 +8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Looks great Simon, I think you should merge the polygons before rounding them |
The docs also have some issues, can merge once it's fixed https://github.com/gdsfactory/gdsfactory/actions/runs/4218770431/jobs/7323514671 |
Thanks @joamatab , I was already fusing the polygons for the erosion/dilation so that was an easy addition :) @HelgeGehring the notebook now crashes because femwell tries to convert something complex to real. The plugin test fails for the same reason. Do you know the easiest fix?
|
Might it be, that the "real" conversion of slepc is installed instead of the "complex" version? |
strange, the gdsfactory makefile installs the complex version Anyway, I am now making it use whatever is default in femwell and now it works! |
seems like scipy works locally but not on the build server for docs |
Happy to merge it when the tests pass |
Changed it to slepc again. Worked locally on my VM, and seems to work here too |
some cleaned up work I had lying around to treat morphological transformations as parameters to the model builder, e.g.
Initial geometry:
Dilation and erosion (ports are shrunk and grown too):
Offsets between layers (ports are also translated):
Corner rounding (ports are padded to maintain continuity):
This can be swept just like any other Component or LayerStack parameters in the model builder:
Next step is to include better distributed processing in the generic model builder. I think with Ray we can scale from local, to cluster, to cloud seamlessly, so just need to format the remote decorator properly