tidy3d 2.2.2__tar.gz → 2.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.
- {tidy3d-2.2.2/tidy3d.egg-info → tidy3d-2.3.0}/PKG-INFO +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/dev.txt +1 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_IO.py +9 -0
- tidy3d-2.3.0/tests/test_components/test_custom.py +862 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_geometry.py +28 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_medium.py +50 -5
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_monitor.py +6 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_simulation.py +51 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_source.py +6 -2
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_monitor_data.py +23 -0
- tidy3d-2.3.0/tests/test_package/test_log.py +133 -0
- tidy3d-2.3.0/tests/test_package/test_parametric_variants.py +63 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_adjoint.py +157 -11
- tidy3d-2.3.0/tests/test_plugins/test_dispersion_fitter.py +121 -0
- tidy3d-2.3.0/tests/test_plugins/test_mode_solver.py +428 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_task.py +47 -11
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_webapi.py +36 -161
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/utils.py +139 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/__init__.py +5 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/base.py +50 -4
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/data_array.py +26 -2
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/dataset.py +8 -4
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/monitor_data.py +155 -22
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/sim_data.py +4 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/geometry.py +24 -10
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/grid.py +94 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/mesher.py +3 -3
- tidy3d-2.3.0/tidy3d/components/medium.py +3295 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/mode.py +0 -5
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/monitor.py +56 -5
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/simulation.py +286 -247
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/source.py +70 -64
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/structure.py +3 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/types.py +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/validators.py +46 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/viz.py +43 -0
- tidy3d-2.3.0/tidy3d/log.py +330 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/material_library.py +88 -44
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/parametric_materials.py +61 -36
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/__init__.py +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/data_array.py +215 -10
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/monitor_data.py +163 -24
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/sim_data.py +13 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/geometry.py +171 -16
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/medium.py +73 -28
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/simulation.py +164 -49
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/structure.py +4 -2
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/web.py +4 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/dispersion/__init__.py +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/dispersion/fit.py +102 -166
- tidy3d-2.3.0/tidy3d/plugins/dispersion/fit_web.py +9 -0
- tidy3d-2.2.2/tidy3d/plugins/dispersion/fit_web.py → tidy3d-2.3.0/tidy3d/plugins/dispersion/web.py +148 -110
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/derivatives.py +11 -9
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/mode_solver.py +78 -60
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/solver.py +132 -49
- tidy3d-2.3.0/tidy3d/plugins/mode/web.py +471 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/waveguide/rectangular_dielectric.py +7 -2
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/version.py +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/__init__.py +0 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/app.py +9 -2
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/migrate.py +4 -6
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/container.py +52 -4
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/environment.py +18 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/httputils.py +3 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/s3utils.py +43 -24
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/simulation_task.py +77 -64
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/task.py +19 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/webapi.py +86 -41
- {tidy3d-2.2.2 → tidy3d-2.3.0/tidy3d.egg-info}/PKG-INFO +1 -1
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/SOURCES.txt +2 -3
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/requires.txt +1 -0
- tidy3d-2.2.2/tests/test_components/test_custom.py +0 -293
- tidy3d-2.2.2/tests/test_package/test_log.py +0 -55
- tidy3d-2.2.2/tests/test_package/test_parametric_variants.py +0 -41
- tidy3d-2.2.2/tests/test_plugins/test_dispersion_fitter.py +0 -78
- tidy3d-2.2.2/tests/test_plugins/test_mode_solver.py +0 -232
- tidy3d-2.2.2/tests/test_web/test_auth.py +0 -117
- tidy3d-2.2.2/tidy3d/components/medium.py +0 -1916
- tidy3d-2.2.2/tidy3d/log.py +0 -181
- tidy3d-2.2.2/tidy3d/web/auth.py +0 -236
- tidy3d-2.2.2/tidy3d/web/config.py +0 -88
- {tidy3d-2.2.2 → tidy3d-2.3.0}/LICENSE +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/MANIFEST.in +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/README.md +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/pyproject.toml +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/basic.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/core.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/gdspy.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/gdstk.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/jax.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/trimesh.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/web.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/setup.cfg +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/setup.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_adjoint_performance.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_data_performance.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_fit_web.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_plugins_web.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_web.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_apodization.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_base.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_boundaries.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_field_projection.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_grid.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_grid_spec.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_meshgenerate.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_mode.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_sidewall.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_types.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_viz.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_data_arrays.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_sim_data.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_config.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_main.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_make_script.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_material_library.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_component_modeler.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_polyslab.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_resonance_finder.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_waveguide.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/mock_web.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_cli.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_material_fitter.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_task.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_folder.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_material_library.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/__main__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/apodization.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/boundary.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/field_projection.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/grid_spec.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/transformation.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/config.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/constants.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/exceptions.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/material_reference.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/base.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/dataset.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/types.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/transforms.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/polyslab/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/polyslab/polyslab.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/resonance/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/resonance/resonance.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/smatrix/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/smatrix/smatrix.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/waveguide/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/updater.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/asynchronous.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cacert.pem +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cache.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/__init__.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/constants.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/http_management.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/material_fitter.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/material_libray.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/types.py +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/dependency_links.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/entry_points.txt +0 -0
- {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/top_level.txt +0 -0
|
@@ -35,9 +35,18 @@ def set_datasets_to_none(sim):
|
|
|
35
35
|
for src in sim_dict["sources"]:
|
|
36
36
|
if src["type"] == "CustomFieldSource":
|
|
37
37
|
src["field_dataset"] = None
|
|
38
|
+
elif src["type"] == "CustomCurrentSource":
|
|
39
|
+
src["current_dataset"] = None
|
|
38
40
|
for structure in sim_dict["structures"]:
|
|
39
41
|
if structure["geometry"]["type"] == "TriangleMesh":
|
|
40
42
|
structure["geometry"]["mesh_dataset"] = None
|
|
43
|
+
if "Custom" in structure["medium"]["type"]:
|
|
44
|
+
if structure["medium"]["type"] == "CustomMedium":
|
|
45
|
+
structure["medium"]["eps_dataset"] = None
|
|
46
|
+
elif structure["medium"]["type"] == "CustomPoleResidue":
|
|
47
|
+
structure["medium"]["poles"] = []
|
|
48
|
+
else:
|
|
49
|
+
structure["medium"]["coeffs"] = []
|
|
41
50
|
return td.Simulation.parse_obj(sim_dict)
|
|
42
51
|
|
|
43
52
|
|