Skip to content

Commit c50ccf2

Browse files
committed
clean up
1 parent e12f1a7 commit c50ccf2

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

tidy3d/components/microwave/path_integral_factory.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,3 @@ def make_current_integral(path_spec: CurrentPathSpecTypes) -> CurrentIntegralTyp
6565
elif isinstance(path_spec, CompositeCurrentIntegralSpec):
6666
i_integral = CompositeCurrentIntegral(**path_spec.dict(exclude={"type"}))
6767
return i_integral
68-
69-
70-
def _make_composite_current_integral(
71-
composite_path_spec: CompositeCurrentIntegralSpec,
72-
) -> CompositeCurrentIntegral:
73-
"""Create a composite current path integral from a composite path specification.
74-
75-
Parameters
76-
----------
77-
composite_path_spec : CompositeCurrentIntegralSpec
78-
Specification defining the composite path for current integration.
79-
80-
Returns
81-
-------
82-
CompositeCurrentIntegral
83-
Composite current path integral instance corresponding to the provided specification type.
84-
"""
85-
current_integrals = []
86-
for path_spec in composite_path_spec.path_specs:
87-
current_integrals.append(make_current_integral(path_spec))
88-
89-
field_dict = composite_path_spec.dict(exclude={"type", "path_specs"})
90-
field_dict["current_integrals"] = current_integrals
91-
return CompositeCurrentIntegral(**field_dict)

tidy3d/plugins/microwave/auto_path_integrals.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Helpers for automatic setup of path integrals."""
22

3-
from __future__ import annotations
4-
53
from ...components.geometry.base import Box
64
from ...components.geometry.utils import SnapBehavior, SnapLocation, SnappingSpec, snap_box_to_grid
75
from ...components.grid.grid import Grid
@@ -29,7 +27,6 @@ def path_integrals_from_lumped_element(
2927
polarity : Direction
3028
Choice for defining voltage. When positive, the terminal of the lumped element with
3129
the greatest coordinate is considered the positive terminal.
32-
3330
Returns
3431
-------
3532
VoltageIntegralAxisAligned

0 commit comments

Comments
 (0)