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.
Files changed (176) hide show
  1. {tidy3d-2.2.2/tidy3d.egg-info → tidy3d-2.3.0}/PKG-INFO +1 -1
  2. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/dev.txt +1 -0
  3. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_IO.py +9 -0
  4. tidy3d-2.3.0/tests/test_components/test_custom.py +862 -0
  5. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_geometry.py +28 -0
  6. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_medium.py +50 -5
  7. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_monitor.py +6 -1
  8. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_simulation.py +51 -3
  9. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_source.py +6 -2
  10. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_monitor_data.py +23 -0
  11. tidy3d-2.3.0/tests/test_package/test_log.py +133 -0
  12. tidy3d-2.3.0/tests/test_package/test_parametric_variants.py +63 -0
  13. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_adjoint.py +157 -11
  14. tidy3d-2.3.0/tests/test_plugins/test_dispersion_fitter.py +121 -0
  15. tidy3d-2.3.0/tests/test_plugins/test_mode_solver.py +428 -0
  16. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_task.py +47 -11
  17. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_webapi.py +36 -161
  18. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/utils.py +139 -0
  19. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/__init__.py +5 -3
  20. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/base.py +50 -4
  21. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/data_array.py +26 -2
  22. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/dataset.py +8 -4
  23. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/monitor_data.py +155 -22
  24. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/sim_data.py +4 -3
  25. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/geometry.py +24 -10
  26. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/grid.py +94 -3
  27. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/mesher.py +3 -3
  28. tidy3d-2.3.0/tidy3d/components/medium.py +3295 -0
  29. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/mode.py +0 -5
  30. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/monitor.py +56 -5
  31. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/simulation.py +286 -247
  32. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/source.py +70 -64
  33. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/structure.py +3 -3
  34. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/types.py +1 -1
  35. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/validators.py +46 -0
  36. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/viz.py +43 -0
  37. tidy3d-2.3.0/tidy3d/log.py +330 -0
  38. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/material_library.py +88 -44
  39. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/parametric_materials.py +61 -36
  40. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/__init__.py +1 -1
  41. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/data_array.py +215 -10
  42. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/monitor_data.py +163 -24
  43. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/sim_data.py +13 -3
  44. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/geometry.py +171 -16
  45. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/medium.py +73 -28
  46. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/simulation.py +164 -49
  47. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/structure.py +4 -2
  48. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/web.py +4 -3
  49. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/dispersion/__init__.py +1 -1
  50. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/dispersion/fit.py +102 -166
  51. tidy3d-2.3.0/tidy3d/plugins/dispersion/fit_web.py +9 -0
  52. tidy3d-2.2.2/tidy3d/plugins/dispersion/fit_web.py → tidy3d-2.3.0/tidy3d/plugins/dispersion/web.py +148 -110
  53. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/derivatives.py +11 -9
  54. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/mode_solver.py +78 -60
  55. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/solver.py +132 -49
  56. tidy3d-2.3.0/tidy3d/plugins/mode/web.py +471 -0
  57. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/waveguide/rectangular_dielectric.py +7 -2
  58. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/version.py +1 -1
  59. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/__init__.py +0 -1
  60. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/app.py +9 -2
  61. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/migrate.py +4 -6
  62. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/container.py +52 -4
  63. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/environment.py +18 -3
  64. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/httputils.py +3 -3
  65. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/s3utils.py +43 -24
  66. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/simulation_task.py +77 -64
  67. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/task.py +19 -0
  68. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/webapi.py +86 -41
  69. {tidy3d-2.2.2 → tidy3d-2.3.0/tidy3d.egg-info}/PKG-INFO +1 -1
  70. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/SOURCES.txt +2 -3
  71. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/requires.txt +1 -0
  72. tidy3d-2.2.2/tests/test_components/test_custom.py +0 -293
  73. tidy3d-2.2.2/tests/test_package/test_log.py +0 -55
  74. tidy3d-2.2.2/tests/test_package/test_parametric_variants.py +0 -41
  75. tidy3d-2.2.2/tests/test_plugins/test_dispersion_fitter.py +0 -78
  76. tidy3d-2.2.2/tests/test_plugins/test_mode_solver.py +0 -232
  77. tidy3d-2.2.2/tests/test_web/test_auth.py +0 -117
  78. tidy3d-2.2.2/tidy3d/components/medium.py +0 -1916
  79. tidy3d-2.2.2/tidy3d/log.py +0 -181
  80. tidy3d-2.2.2/tidy3d/web/auth.py +0 -236
  81. tidy3d-2.2.2/tidy3d/web/config.py +0 -88
  82. {tidy3d-2.2.2 → tidy3d-2.3.0}/LICENSE +0 -0
  83. {tidy3d-2.2.2 → tidy3d-2.3.0}/MANIFEST.in +0 -0
  84. {tidy3d-2.2.2 → tidy3d-2.3.0}/README.md +0 -0
  85. {tidy3d-2.2.2 → tidy3d-2.3.0}/pyproject.toml +0 -0
  86. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/basic.txt +0 -0
  87. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/core.txt +0 -0
  88. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/gdspy.txt +0 -0
  89. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/gdstk.txt +0 -0
  90. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/jax.txt +0 -0
  91. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/trimesh.txt +0 -0
  92. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements/web.txt +0 -0
  93. {tidy3d-2.2.2 → tidy3d-2.3.0}/requirements.txt +0 -0
  94. {tidy3d-2.2.2 → tidy3d-2.3.0}/setup.cfg +0 -0
  95. {tidy3d-2.2.2 → tidy3d-2.3.0}/setup.py +0 -0
  96. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/__init__.py +0 -0
  97. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/__init__.py +0 -0
  98. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_adjoint_performance.py +0 -0
  99. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_data_performance.py +0 -0
  100. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_fit_web.py +0 -0
  101. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_plugins_web.py +0 -0
  102. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/_test_local/_test_web.py +0 -0
  103. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/__init__.py +0 -0
  104. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_apodization.py +0 -0
  105. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_base.py +0 -0
  106. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_boundaries.py +0 -0
  107. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_field_projection.py +0 -0
  108. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_grid.py +0 -0
  109. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_grid_spec.py +0 -0
  110. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_meshgenerate.py +0 -0
  111. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_mode.py +0 -0
  112. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_sidewall.py +0 -0
  113. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_types.py +0 -0
  114. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_components/test_viz.py +0 -0
  115. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/__init__.py +0 -0
  116. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_data_arrays.py +0 -0
  117. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_data/test_sim_data.py +0 -0
  118. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/__init__.py +0 -0
  119. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_config.py +0 -0
  120. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_main.py +0 -0
  121. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_make_script.py +0 -0
  122. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_package/test_material_library.py +0 -0
  123. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/__init__.py +0 -0
  124. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_component_modeler.py +0 -0
  125. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_polyslab.py +0 -0
  126. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_resonance_finder.py +0 -0
  127. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_plugins/test_waveguide.py +0 -0
  128. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/__init__.py +0 -0
  129. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/mock_web.py +0 -0
  130. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_cli.py +0 -0
  131. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_material_fitter.py +0 -0
  132. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_task.py +0 -0
  133. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_folder.py +0 -0
  134. {tidy3d-2.2.2 → tidy3d-2.3.0}/tests/test_web/test_tidy3d_material_library.py +0 -0
  135. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/__main__.py +0 -0
  136. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/__init__.py +0 -0
  137. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/apodization.py +0 -0
  138. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/boundary.py +0 -0
  139. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/data/__init__.py +0 -0
  140. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/field_projection.py +0 -0
  141. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/__init__.py +0 -0
  142. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/grid/grid_spec.py +0 -0
  143. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/components/transformation.py +0 -0
  144. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/config.py +0 -0
  145. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/constants.py +0 -0
  146. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/exceptions.py +0 -0
  147. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/__init__.py +0 -0
  148. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/material_library/material_reference.py +0 -0
  149. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/__init__.py +0 -0
  150. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/__init__.py +0 -0
  151. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/base.py +0 -0
  152. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/__init__.py +0 -0
  153. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/data/dataset.py +0 -0
  154. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/adjoint/components/types.py +0 -0
  155. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/__init__.py +0 -0
  156. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/mode/transforms.py +0 -0
  157. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/polyslab/__init__.py +0 -0
  158. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/polyslab/polyslab.py +0 -0
  159. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/resonance/__init__.py +0 -0
  160. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/resonance/resonance.py +0 -0
  161. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/smatrix/__init__.py +0 -0
  162. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/smatrix/smatrix.py +0 -0
  163. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/plugins/waveguide/__init__.py +0 -0
  164. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/updater.py +0 -0
  165. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/asynchronous.py +0 -0
  166. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cacert.pem +0 -0
  167. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cache.py +0 -0
  168. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/__init__.py +0 -0
  169. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/cli/constants.py +0 -0
  170. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/http_management.py +0 -0
  171. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/material_fitter.py +0 -0
  172. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/material_libray.py +0 -0
  173. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d/web/types.py +0 -0
  174. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/dependency_links.txt +0 -0
  175. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/entry_points.txt +0 -0
  176. {tidy3d-2.2.2 → tidy3d-2.3.0}/tidy3d.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tidy3d
3
- Version: 2.2.2
3
+ Version: 2.3.0
4
4
  Summary: A fast FDTD solver
5
5
  Home-page: https://github.com/flexcompute/tidy3d
6
6
  Author: Tyler Hughes
@@ -15,3 +15,4 @@ pytest
15
15
  pytest-timeout
16
16
  memory_profiler
17
17
  dill
18
+ ipython
@@ -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