-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #606 from gdsfactory/kcl-dependency
Try to fix dependency
- Loading branch information
Showing
6 changed files
with
17 additions
and
51 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import kfactory as kf | ||
|
||
|
||
def test_icross_section_creation() -> None: | ||
xs = kf.kcl.get_icross_section( | ||
def test_icross_section_creation(kcl: kf.KCLayout) -> None: | ||
xs = kcl.get_icross_section( | ||
kf.cross_section.CrossSectionSpec[int]( | ||
name="WG_350", | ||
sections=[(kf.kdb.LayerInfo(2, 0), 500)], | ||
layer=kf.kdb.LayerInfo(1, 0), | ||
width=1000, | ||
) | ||
) | ||
assert xs._base in kf.kcl.cross_sections.cross_sections.values() | ||
assert xs._base in kcl.cross_sections.cross_sections.values() |
This file contains 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
This file contains 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
This file contains 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