From 006a23a6bfac83c340179a08b23eea37f4fe4a22 Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Tue, 14 May 2024 15:47:06 -0700 Subject: [PATCH] update tests --- .gitignore | 2 + tests/ref/_mmi1x2__mmi1x2_574421d1.gds | Bin 0 -> 1146 bytes tests/ref/_mmi2x2__mmi2x2_07b187b9.gds | Bin 0 -> 1402 bytes tests/ref/straight_straight_7a68ed6c.gds | Bin 0 -> 380 bytes tests/ref/strip_taper.gds | Bin 374 -> 374 bytes .../test_pdk_settings_die_.yml | 5 +- .../test_pdk_settings_mmi1x2_.yml | 78 ++---------------- .../test_pdk_settings_mmi2x2_.yml | 78 ++---------------- .../test_pdk_settings_straight_.yml | 72 +--------------- .../test_pdk_settings_straight_sc_.yml | 72 +--------------- .../test_pdk_settings_strip_to_rib_.yml | 46 ++--------- 11 files changed, 34 insertions(+), 319 deletions(-) create mode 100644 tests/ref/_mmi1x2__mmi1x2_574421d1.gds create mode 100644 tests/ref/_mmi2x2__mmi2x2_07b187b9.gds create mode 100644 tests/ref/straight_straight_7a68ed6c.gds diff --git a/.gitignore b/.gitignore index 3a31447..dabfe8c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ __pycache__/ # C extensions *.so *.fsp +tests/ref/*.oas + # Distribution / packaging .Python diff --git a/tests/ref/_mmi1x2__mmi1x2_574421d1.gds b/tests/ref/_mmi1x2__mmi1x2_574421d1.gds new file mode 100644 index 0000000000000000000000000000000000000000..3d9731807e99dcd8fb760be3eaffcb2b054db1ee GIT binary patch literal 1146 zcmbu8y)Q#i7{;I8wzpIXNe7Y+1~EtzS{fuGkr0EC#K$5POA{S*;!iLcj0QF&?8GXF zj~Fnh(LW$0rpoKw`*`)}$HHBHC(pURJoh~(7cLxU4vByhc|jB%h@cCd_8KwAUCAvK zvW0aZ9t@9;Z46GG@4XI>ANTHVFU%kjuJ6WOcQK#OrPk7mnZbd9bZR+;Py^sLJD7*t z;vj%zYY^rUdA|ns-;_Ws}54GXP5BPrkpMJFL-<-0a1o|h~Pl}kly1%LHUtQ2A zfy^*{QpDtSe34SS$o;hUz7j|tdAZWht9^fd`lVU=BoI8HPnz{?jedWA`j3 z-vfP8^112xWqyp%SDO85 i-p}oqb{c?Vy$vvN!Xfjapyp$_B_xt_x&py2`>?^5{b0y`WFXx}HqjS!_kmu!o z+7Dg#eQ$nQ*IuReDwprQ#URPR&Y;4efXrs#VPeb4Oe#t&s$^ggVP>^+>@@d2w)}&o z%MSeov!g;7WLRc5fsKKQDS|Rf2W#pFwiCpCXi7+r|{Q%NH0HHzR6JIHT^<4V{6y};N#;87VFTWPT6b1&yFJLWD R8f-d?AOiynI}o!l008KkCHw#Y delta 151 zcmeyy^o>c5fsKKQDS|Rf2W#mT{nfMnXaP1FB$z(A`^@)4=wLqG#a)3k_7_@#cfB}RCi?awaFtD%#F$)6# DB}608 diff --git a/tests/test_components/test_pdk_settings_die_.yml b/tests/test_components/test_pdk_settings_die_.yml index ed5221f..00c4a24 100644 --- a/tests/test_components/test_pdk_settings_die_.yml +++ b/tests/test_components/test_pdk_settings_die_.yml @@ -1,9 +1,6 @@ function: die info: - port_x_position_east: 2423.5 - port_x_position_west: -2423.5 - port_y_position_north: 4673.5 - port_y_position_south: -4673.5 + frame_margin: 76.5 module: gvtt.components.die name: die settings: diff --git a/tests/test_components/test_pdk_settings_mmi1x2_.yml b/tests/test_components/test_pdk_settings_mmi1x2_.yml index 8fc7ead..7a8f7ab 100644 --- a/tests/test_components/test_pdk_settings_mmi1x2_.yml +++ b/tests/test_components/test_pdk_settings_mmi1x2_.yml @@ -1,82 +1,18 @@ -function: mmi1x2 +function: _mmi1x2 info: {} -module: gdsfactory.components.mmi1x2 -name: mmi1x2_c8071938 +module: gvtt.components.mmi1x2 +name: _mmi1x2_574421d1 settings: cross_section: - bbox_layers: null - bbox_offsets: null - components_along_path: [] - radius: 10.0 - radius_min: null - sections: - - hidden: false - insets: null - layer: - - 89 - - 1 - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null + function: strip + module: gvtt.xsections + settings: width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_SUB - name: WG - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_ADD - name: trench - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 21.875 - width_function: null - - hidden: false - insets: null - layer: WG_MOST_ADD - name: trench_2 - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 22.875 - width_function: null gap_mmi: 1.25 length_mmi: 43.25 length_taper: 1.0 taper: function: strip_taper - width: null + width: 1.875 width_mmi: 6.25 width_taper: 1.875 diff --git a/tests/test_components/test_pdk_settings_mmi2x2_.yml b/tests/test_components/test_pdk_settings_mmi2x2_.yml index 2a24ce9..9cf2af1 100644 --- a/tests/test_components/test_pdk_settings_mmi2x2_.yml +++ b/tests/test_components/test_pdk_settings_mmi2x2_.yml @@ -1,80 +1,16 @@ -function: mmi2x2 +function: _mmi2x2 info: {} -module: gdsfactory.components.mmi2x2 -name: mmi2x2_55c4183e +module: gvtt.components.mmi2x2 +name: _mmi2x2_07b187b9 settings: cross_section: - bbox_layers: null - bbox_offsets: null - components_along_path: [] - radius: 10.0 - radius_min: null - sections: - - hidden: false - insets: null - layer: - - 89 - - 1 - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null + function: strip + module: gvtt.xsections + settings: width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_SUB - name: WG - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_ADD - name: trench - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 21.875 - width_function: null - - hidden: false - insets: null - layer: WG_MOST_ADD - name: trench_2 - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 22.875 - width_function: null gap_mmi: 1.25 length_mmi: 112.0 - length_taper: 1.0 + length_taper: null taper: function: strip_taper width: null diff --git a/tests/test_components/test_pdk_settings_straight_.yml b/tests/test_components/test_pdk_settings_straight_.yml index b5c7247..2c71bb0 100644 --- a/tests/test_components/test_pdk_settings_straight_.yml +++ b/tests/test_components/test_pdk_settings_straight_.yml @@ -7,76 +7,12 @@ info: route_info_weight: 10.0 width: 1.875 module: gdsfactory.components.straight -name: straight_bdf7fc24 +name: straight_7a68ed6c settings: cross_section: - bbox_layers: null - bbox_offsets: null - components_along_path: [] - radius: 10.0 - radius_min: null - sections: - - hidden: false - insets: null - layer: - - 89 - - 1 - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null + function: strip + module: gvtt.xsections + settings: width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_SUB - name: WG - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_ADD - name: trench - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 21.875 - width_function: null - - hidden: false - insets: null - layer: WG_MOST_ADD - name: trench_2 - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 22.875 - width_function: null length: 10.0 npoints: 2 diff --git a/tests/test_components/test_pdk_settings_straight_sc_.yml b/tests/test_components/test_pdk_settings_straight_sc_.yml index b5c7247..2c71bb0 100644 --- a/tests/test_components/test_pdk_settings_straight_sc_.yml +++ b/tests/test_components/test_pdk_settings_straight_sc_.yml @@ -7,76 +7,12 @@ info: route_info_weight: 10.0 width: 1.875 module: gdsfactory.components.straight -name: straight_bdf7fc24 +name: straight_7a68ed6c settings: cross_section: - bbox_layers: null - bbox_offsets: null - components_along_path: [] - radius: 10.0 - radius_min: null - sections: - - hidden: false - insets: null - layer: - - 89 - - 1 - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null + function: strip + module: gvtt.xsections + settings: width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_SUB - name: WG - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 1.875 - width_function: null - - hidden: false - insets: null - layer: WG_RIBS_ADD - name: trench - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 21.875 - width_function: null - - hidden: false - insets: null - layer: WG_MOST_ADD - name: trench_2 - offset: 0 - offset_function: null - port_names: - - null - - null - port_types: - - optical - - optical - simplify: null - width: 22.875 - width_function: null length: 10.0 npoints: 2 diff --git a/tests/test_components/test_pdk_settings_strip_to_rib_.yml b/tests/test_components/test_pdk_settings_strip_to_rib_.yml index 28097be..26aec1a 100644 --- a/tests/test_components/test_pdk_settings_strip_to_rib_.yml +++ b/tests/test_components/test_pdk_settings_strip_to_rib_.yml @@ -1,39 +1,11 @@ +function: strip_to_rib +info: + length: 200.0 + width1: 3.0 + width2: 3.0 +module: gvtt.components.transitions name: strip_to_rib -ports: - o1: - center: - - 200.0 - - 0.0 - layer: null - name: o1 - orientation: 0.0 - port_type: optical - shear_angle: null - width: 3.0 - o2: - center: - - 0.0 - - 0.0 - layer: null - name: o2 - orientation: 180 - port_type: optical - shear_angle: null - width: 3.0 settings: - changed: {} - child: null - default: - width1: 3.0 - width2: 3.0 - full: - width1: 3.0 - width2: 3.0 - function_name: strip_to_rib - info: - length: 200.0 - width1: 3.0 - width2: 3.0 - info_version: 2 - module: gvtt.components.transitions - name: strip_to_rib + length: 200.0 + width1: 3.0 + width2: 3.0