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
Mesh profile per layer #983
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 2.21%.
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 #983 +/- ##
==========================================
+ Coverage 74.05% 74.06% +0.01%
==========================================
Files 432 432
Lines 22214 22216 +2
Branches 2984 2986 +2
==========================================
+ Hits 16450 16454 +4
+ Misses 4877 4876 -1
+ Partials 887 886 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
agreed on the box_layer, buffer_profile is a bit confusing name |
Sure I'll change it later tonight!
Obtenir Outlook pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: Joaquin Matres ***@***.***>
Sent: Sunday, December 11, 2022 5:00:05 PM
To: gdsfactory/gdsfactory ***@***.***>
Cc: Simon Bilodeau ***@***.***>; Author ***@***.***>
Subject: Re: [gdsfactory/gdsfactory] Mesh profile per layer (PR #983)
agreed on the box_layer,
buffer_profile is a bit confusing name
how about z_to_bias?
—
Reply to this email directly, view it on GitHub<#983 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCG3WNQ4T37VEC7YALVJMTWMZ2JLANCNFSM6AAAAAAS3J7DNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
remove box_thickness and box_thickness from layerStack
I'll send a PR |
Ok -- there's only tests for simple cases right now so it might not catch all of these. Since the tool is getting more into shape I'll start adding more tests too
pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: Joaquin Matres ***@***.***>
Sent: Sunday, December 11, 2022 5:20:47 PM
To: gdsfactory/gdsfactory ***@***.***>
Cc: Simon Bilodeau ***@***.***>; Author ***@***.***>
Subject: Re: [gdsfactory/gdsfactory] Mesh profile per layer (PR #983)
I'll send a PR
—
Reply to this email directly, view it on GitHub<#983 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCG3WMXTDV7ZAWJ2MQDU43WMZ4W7ANCNFSM6AAAAAAS3J7DNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Also, How can we draw layers with layer=None in any of the simulation plugins? |
For the gmsh plugin they are assigned a polygon of size bbox
Ultimately the plugin developer has to decide
Obtenir Outlook pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: Joaquin Matres ***@***.***>
Sent: Sunday, December 11, 2022 5:32:10 PM
To: gdsfactory/gdsfactory ***@***.***>
Cc: Simon Bilodeau ***@***.***>; Author ***@***.***>
Subject: Re: [gdsfactory/gdsfactory] Mesh profile per layer (PR #983)
Also,
How can we draw layers with layer=None in any of the simulation plugins?
—
Reply to this email directly, view it on GitHub<#983 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALCG3WLP3YXJDLKCMVKCSYTWMZ6BVANCNFSM6AAAAAAS3J7DNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
LayerLevel
that is used to parametrize arbitrary transformations for a layer when it needs to be represented in a simulator.For instance, one can assign a round-ish profile (better with more points) to a specific GDS layer in this way:
The
buffer_profile
is a tuple of two lists. The first one parametrizes a position from zmin (when = 0) to zmin + thickness (when = 1). The second parametrizes a shrink (for negative sign) or expansion (if positive) to apply to this layer's polygons.For the following waveguide layout with the middle square being an undercut:
the following cross-sectional mesh is obtained along the
x=4
line (with different colors = different GDS layers, that a simulator can parse)buffer_profiles
bbox
to this layer if layer is present. Currently used for substrate, BOX, and cladding.@joamatab There is duplication with the recent definition of BOX at the global
LayerStack
level. I think we should let BOX, substrate, etc. be regular LayerLevels that havelayer=None
so that all other parameters of a layer (zmin, thickness, material, mesh_order, etc) can also be assigned to them, and they can be treated like regular layers in code, including being filtered out or added to aLayerStack
.@HelgeGehring