gds-fdtd 0.3.0__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.
gds_fdtd-0.3.0/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024, Mustafa Hammood
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.
22
+
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: gds_fdtd
3
+ Version: 0.3.0
4
+ Summary: A minimalist package for simulating photonics designs.
5
+ Keywords: photonics,fdtd,simulation,gds,silicon-photonics,optics,simulation
6
+ Author-email: Mustafa Hammood <mustafa@siepic.com>
7
+ Description-Content-Type: text/markdown
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ License-File: LICENSE
12
+ Requires-Dist: pip>=23.3
13
+ Requires-Dist: bump2version==0.5.11
14
+ Requires-Dist: wheel>=0.38.1
15
+ Requires-Dist: watchdog==2.3.0
16
+ Requires-Dist: twine==1.14.0
17
+ Requires-Dist: klayout==0.30.1
18
+ Requires-Dist: tidy3d==2.8.0
19
+ Requires-Dist: docutils<0.21
20
+ Requires-Dist: sphinx-rtd-theme>=1.2.0
21
+ Requires-Dist: pytest ; extra == "dev"
22
+ Requires-Dist: coverage ; extra == "dev"
23
+ Requires-Dist: gdsfactory>=9.5.0 ; extra == "gdsfactory"
24
+ Requires-Dist: prefab==1.2.0 ; extra == "prefab"
25
+ Provides-Extra: dev
26
+ Provides-Extra: gdsfactory
27
+ Provides-Extra: prefab
28
+
29
+ # gds_fdtd
30
+
31
+ ![alternative text](/docs/banner.png)
32
+
33
+ ![codecov](https://codecov.io/gh/mustafacc/gds_fdtd/branch/main/graph/badge.svg)
34
+ ![build](https://github.com/mustafacc/gds_fdtd/actions/workflows/main.yml/badge.svg)
35
+
36
+ **gds_fdtd** is a minimal Python module to assist in setting up FDTD simulations for planar nanophotonic devices using FDTD solvers such as Tidy3D.
37
+
38
+ ## Features
39
+
40
+ - **Automated FDTD Setup:** Easily set up Tidy3D simulations for devices designed in GDS.
41
+ - **Integration with gdsfactory:** Generate Tidy3D simulations directly from [gdsfactory](https://github.com/gdsfactory/gdsfactory) designs by identifying ports and simulation regions from an input technology stack.
42
+ - **S-Parameter Extraction:** Automatically generate and export S-parameters of your photonic devices in standard formats.
43
+ - **Multimode/Dual Polarization Simulations:** Set up simulations that support multimode or dual polarization configurations for advanced device analysis.
44
+
45
+ ## Installation
46
+
47
+ You can install `gds_fdtd` using the following options:
48
+
49
+ ### Option 1: Basic Installation
50
+
51
+ To install the core functionality of `gds_fdtd`, clone the repository and install using `pip`:
52
+
53
+ ```bash
54
+ git clone git@github.com:mustafacc/gds_fdtd.git
55
+ cd gds_fdtd
56
+ pip install .
57
+ ```
58
+
59
+ ### Option 2: Development Installation
60
+
61
+ For contributing to the development or if you need testing utilities, install with the dev dependencies:
62
+
63
+ ```bash
64
+ git clone git@github.com:mustafacc/gds_fdtd.git
65
+ cd gds_fdtd
66
+ pip install -e .[dev]
67
+ ```
68
+
69
+ This will install additional tools like `pytest` and `coverage` for testing.
70
+
71
+ ### Optional Dependencies
72
+
73
+ If your workflow includes specific dependencies such as gdsfactory or prefab, you can install those optional extras:
74
+
75
+ with [gdsfactory](https://github.com/gdsfactory/gdsfactory):
76
+
77
+ ```bash
78
+ pip install -e .[gdsfactory]
79
+ ```
80
+
81
+ Refer to [gdsfactory example](/examples/06_gdsfactory/06a_gf_bend.py) for usage.
82
+
83
+ with [prefab](https://github.com/PreFab-Photonics/PreFab):
84
+
85
+ ```bash
86
+ pip install -e .[prefab]
87
+ ```
88
+
89
+ Refer to [prefab example](/examples/08_prefab/08a_bragg_prefab.py) for usage.
90
+
91
+ If you want everything installed for both development and optional features, run the following command:
92
+
93
+ ```bash
94
+ pip install -e .[dev,gdsfactory,prefab]
95
+ ```
96
+
97
+
98
+ ### Running tests
99
+
100
+ If you've installed the `dev` dependencies, you can run the test suite with:
101
+
102
+ ```bash
103
+ pytest --cov=gds_fdtd tests
104
+ ```
105
+
@@ -0,0 +1,76 @@
1
+ # gds_fdtd
2
+
3
+ ![alternative text](/docs/banner.png)
4
+
5
+ ![codecov](https://codecov.io/gh/mustafacc/gds_fdtd/branch/main/graph/badge.svg)
6
+ ![build](https://github.com/mustafacc/gds_fdtd/actions/workflows/main.yml/badge.svg)
7
+
8
+ **gds_fdtd** is a minimal Python module to assist in setting up FDTD simulations for planar nanophotonic devices using FDTD solvers such as Tidy3D.
9
+
10
+ ## Features
11
+
12
+ - **Automated FDTD Setup:** Easily set up Tidy3D simulations for devices designed in GDS.
13
+ - **Integration with gdsfactory:** Generate Tidy3D simulations directly from [gdsfactory](https://github.com/gdsfactory/gdsfactory) designs by identifying ports and simulation regions from an input technology stack.
14
+ - **S-Parameter Extraction:** Automatically generate and export S-parameters of your photonic devices in standard formats.
15
+ - **Multimode/Dual Polarization Simulations:** Set up simulations that support multimode or dual polarization configurations for advanced device analysis.
16
+
17
+ ## Installation
18
+
19
+ You can install `gds_fdtd` using the following options:
20
+
21
+ ### Option 1: Basic Installation
22
+
23
+ To install the core functionality of `gds_fdtd`, clone the repository and install using `pip`:
24
+
25
+ ```bash
26
+ git clone git@github.com:mustafacc/gds_fdtd.git
27
+ cd gds_fdtd
28
+ pip install .
29
+ ```
30
+
31
+ ### Option 2: Development Installation
32
+
33
+ For contributing to the development or if you need testing utilities, install with the dev dependencies:
34
+
35
+ ```bash
36
+ git clone git@github.com:mustafacc/gds_fdtd.git
37
+ cd gds_fdtd
38
+ pip install -e .[dev]
39
+ ```
40
+
41
+ This will install additional tools like `pytest` and `coverage` for testing.
42
+
43
+ ### Optional Dependencies
44
+
45
+ If your workflow includes specific dependencies such as gdsfactory or prefab, you can install those optional extras:
46
+
47
+ with [gdsfactory](https://github.com/gdsfactory/gdsfactory):
48
+
49
+ ```bash
50
+ pip install -e .[gdsfactory]
51
+ ```
52
+
53
+ Refer to [gdsfactory example](/examples/06_gdsfactory/06a_gf_bend.py) for usage.
54
+
55
+ with [prefab](https://github.com/PreFab-Photonics/PreFab):
56
+
57
+ ```bash
58
+ pip install -e .[prefab]
59
+ ```
60
+
61
+ Refer to [prefab example](/examples/08_prefab/08a_bragg_prefab.py) for usage.
62
+
63
+ If you want everything installed for both development and optional features, run the following command:
64
+
65
+ ```bash
66
+ pip install -e .[dev,gdsfactory,prefab]
67
+ ```
68
+
69
+
70
+ ### Running tests
71
+
72
+ If you've installed the `dev` dependencies, you can run the test suite with:
73
+
74
+ ```bash
75
+ pytest --cov=gds_fdtd tests
76
+ ```
@@ -0,0 +1,6 @@
1
+ """gds_fdtd Top-level package imports."""
2
+ from . import core, lyprocessor, simprocessor
3
+
4
+ __author__ = """Mustafa Hammood"""
5
+ __email__ = "mustafa@siepic.com"
6
+ __version__ = "0.3.0"