hhi 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hhi-0.2.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 gdsfactory
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
hhi-0.2.4/PKG-INFO ADDED
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: hhi
3
+ Version: 0.2.4
4
+ Summary: HHI photonics PDK
5
+ Keywords: python
6
+ Author-email: gdsfactory <contact@gdsfactory.com>
7
+ Requires-Python: >=3.11,<3.13
8
+ Description-Content-Type: text/markdown
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Operating System :: OS Independent
12
+ License-File: LICENSE
13
+ Requires-Dist: gdsfactory~=9.2.2
14
+ Requires-Dist: gplugins[tidy3d, sax]>=1.3.0
15
+ Requires-Dist: pre-commit ; extra == "dev"
16
+ Requires-Dist: pytest ; extra == "dev"
17
+ Requires-Dist: pytest-cov ; extra == "dev"
18
+ Requires-Dist: pytest_regressions ; extra == "dev"
19
+ Requires-Dist: pytest-github-actions-annotate-failures ; extra == "dev"
20
+ Requires-Dist: pyppeteer ; extra == "dev"
21
+ Requires-Dist: matplotlib ; extra == "docs"
22
+ Requires-Dist: jupyter-book==1.0.2 ; extra == "docs"
23
+ Requires-Dist: sphinx-autodoc-typehints ; extra == "docs"
24
+ Requires-Dist: tbump ; extra == "maintain"
25
+ Requires-Dist: towncrier ; extra == "maintain"
26
+ Requires-Dist: ruff ; extra == "maintain"
27
+ Provides-Extra: dev
28
+ Provides-Extra: docs
29
+ Provides-Extra: maintain
30
+
31
+ # hhi 0.2.4
32
+
33
+ HHI photonics PDK for gdsfactory
34
+
35
+ ## Installation
36
+
37
+ Use python 3.12. We recommend [VSCode](https://code.visualstudio.com/) as an IDE.
38
+
39
+ We recommend `uv`
40
+
41
+ ```bash
42
+ # On macOS and Linux.
43
+ curl -LsSf https://astral.sh/uv/install.sh | sh
44
+ ```
45
+
46
+ ```bash
47
+ # On Windows.
48
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
49
+ ```
50
+
51
+ Then you can install with:
52
+
53
+ ```bash
54
+ uv venv --python 3.12
55
+ uv pip install hhi
56
+ ```
57
+
58
+ Then you need to restart Klayout to make sure the new technology installed appears.
59
+
hhi-0.2.4/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # hhi 0.2.4
2
+
3
+ HHI photonics PDK for gdsfactory
4
+
5
+ ## Installation
6
+
7
+ Use python 3.12. We recommend [VSCode](https://code.visualstudio.com/) as an IDE.
8
+
9
+ We recommend `uv`
10
+
11
+ ```bash
12
+ # On macOS and Linux.
13
+ curl -LsSf https://astral.sh/uv/install.sh | sh
14
+ ```
15
+
16
+ ```bash
17
+ # On Windows.
18
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
19
+ ```
20
+
21
+ Then you can install with:
22
+
23
+ ```bash
24
+ uv venv --python 3.12
25
+ uv pip install hhi
26
+ ```
27
+
28
+ Then you need to restart Klayout to make sure the new technology installed appears.
@@ -0,0 +1,49 @@
1
+ """hhi - HHI photonics PDK"""
2
+
3
+ import gdsfactory as gf
4
+ from gdsfactory.get_factories import get_cells
5
+
6
+ from hhi import cells, cells2, config
7
+ from hhi.models import models
8
+ from hhi.tech import (
9
+ LAYER,
10
+ LAYER_STACK,
11
+ LAYER_VIEWS,
12
+ MATERIALS_INDEX,
13
+ constants,
14
+ cross_sections,
15
+ )
16
+
17
+ cells_dict = get_cells([cells, cells2])
18
+
19
+ layer_transitions = {
20
+ (LAYER.M1, LAYER.M2): "taper_dc",
21
+ (LAYER.M2, LAYER.M1): "taper_dc",
22
+ }
23
+
24
+
25
+ PDK = gf.Pdk(
26
+ name="HHI",
27
+ cells=cells_dict,
28
+ cross_sections=cross_sections,
29
+ layers=LAYER,
30
+ layer_stack=LAYER_STACK,
31
+ layer_views=LAYER_VIEWS,
32
+ layer_transitions=layer_transitions,
33
+ materials_index=MATERIALS_INDEX,
34
+ constants=constants,
35
+ models=models,
36
+ )
37
+ PDK.activate()
38
+
39
+ __all__ = (
40
+ "cells",
41
+ "config",
42
+ "PDK",
43
+ "LAYER",
44
+ "LAYER_VIEWS",
45
+ "LAYER_STACK",
46
+ "cross_sections",
47
+ "constants",
48
+ )
49
+ __version__ = "0.2.4"