refactor: normalize material names to Si/SiO2/SiN/Ge/Al/TiN - #315
Draft
vvahidd wants to merge 1 commit into
Draft
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Reviewer's GuideThis PR standardizes material-name string literals across all cspdk sub-PDKs to match the upcoming pdk-spec material card naming (Si, SiO2, SiN, Ge, Al, TiN) and adds a guarded test that checks each sub-PDK layer stack for full material coverage against pdk_spec.material_cards. Sequence diagram for guarded material coverage test using pdk_specsequenceDiagram
actor Pytest
participant test_material_coverage
participant pdk_spec
participant si220_cband_tech
participant si340_tech
Pytest ->> test_material_coverage: run
test_material_coverage ->> Pytest: pytest.importorskip(pdk_spec)
alt pdk_spec not installed
Pytest -->> test_material_coverage: skip test
else pdk_spec installed
test_material_coverage ->> pdk_spec: material_cards
test_material_coverage ->> si220_cband_tech: get_layer_stack
test_material_coverage ->> si340_tech: get_layer_stack
test_material_coverage ->> test_material_coverage: assert layer_stack materials in material_cards
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
vvahidd
marked this pull request as draft
July 25, 2026 05:20
vvahidd
marked this pull request as ready for review
July 25, 2026 08:07
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
vvahidd
marked this pull request as draft
July 25, 2026 08:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Normalizes material-name string literals across all cspdk sub-PDKs to consistent chemical/element casing: Si, SiO2, SiN, Ge, TiN, Al. This matches the forthcoming pdk-spec material-card library.
Scope of edits (string literals only):
material="..."in each sub-PDKtech.py(si220 c/o-band, si340, si500, si_sus, sin200, sin300, ge_on_si): si to Si, sin to SiN, ge to Ge, Aluminum to Al (TiN unchanged).core_material/clad_materialin the mode-solver samples: si to Si, sin to SiN, sio2 to SiO2.sim.materialsdict keys (meep_mmi, meep_dc): "si" to "Si".Also adds a guarded pilot coverage test (
tests/test_material_coverage.py) that asserts every sub-PDK LAYER_STACK resolves againstpdk_spec.material_cards. It is wrapped inpytest.importorskip("pdk_spec"), so it skips cleanly wherever pdk-spec is not installed (including CI) and runs only once pdk-spec is installed editable into the venv. pdk-spec is intentionally not added to pyproject dependencies.Summary by Sourcery
Normalize material name literals across sub-PDK layer stacks, samples, and notebooks to match standardized chemical notation and add a guarded material coverage test against pdk_spec.
New Features:
Enhancements:
Tests: