Skip to content

Commit 1f1effa

Browse files
First attempt at refactor
1 parent bc3751e commit 1f1effa

15 files changed

+56
-9
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
"""Imports from microwave plugin."""
2+
3+
from __future__ import annotations
4+
5+
from tidy3d.components.microwave import models
6+
from tidy3d.components.microwave.array_factor import (
7+
RectangularAntennaArrayCalculator,
8+
)
9+
from tidy3d.components.microwave.auto_path_integrals import path_integrals_from_lumped_element
10+
from tidy3d.components.microwave.custom_path_integrals import (
11+
CustomCurrentIntegral2D,
12+
CustomPathIntegral2D,
13+
CustomVoltageIntegral2D,
14+
)
15+
from tidy3d.components.microwave.impedance_calculator import (
16+
CurrentIntegralTypes,
17+
ImpedanceCalculator,
18+
VoltageIntegralTypes,
19+
)
20+
from tidy3d.components.microwave.lobe_measurer import LobeMeasurer
21+
from tidy3d.components.microwave.path_integrals import (
22+
AxisAlignedPathIntegral,
23+
CurrentIntegralAxisAligned,
24+
VoltageIntegralAxisAligned,
25+
)
26+
from tidy3d.components.microwave.rf_material_library import rf_material_library
27+
28+
__all__ = [
29+
"AxisAlignedPathIntegral",
30+
"CurrentIntegralAxisAligned",
31+
"CurrentIntegralTypes",
32+
"CustomCurrentIntegral2D",
33+
"CustomPathIntegral2D",
34+
"CustomVoltageIntegral2D",
35+
"ImpedanceCalculator",
36+
"LobeMeasurer",
37+
"RectangularAntennaArrayCalculator",
38+
"VoltageIntegralAxisAligned",
39+
"VoltageIntegralTypes",
40+
"models",
41+
"path_integrals_from_lumped_element",
42+
"rf_material_library",
43+
]
File renamed without changes.

tidy3d/plugins/microwave/__init__.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@
22

33
from __future__ import annotations
44

5-
from . import models
6-
from .array_factor import (
5+
from tidy3d.components.microwave import models
6+
from tidy3d.components.microwave.array_factor import (
77
RectangularAntennaArrayCalculator,
88
)
9-
from .auto_path_integrals import path_integrals_from_lumped_element
10-
from .custom_path_integrals import (
9+
from tidy3d.components.microwave.auto_path_integrals import path_integrals_from_lumped_element
10+
from tidy3d.components.microwave.custom_path_integrals import (
1111
CustomCurrentIntegral2D,
1212
CustomPathIntegral2D,
1313
CustomVoltageIntegral2D,
1414
)
15-
from .impedance_calculator import CurrentIntegralTypes, ImpedanceCalculator, VoltageIntegralTypes
16-
from .lobe_measurer import LobeMeasurer
17-
from .path_integrals import (
15+
from tidy3d.components.microwave.impedance_calculator import (
16+
CurrentIntegralTypes,
17+
ImpedanceCalculator,
18+
VoltageIntegralTypes,
19+
)
20+
from tidy3d.components.microwave.lobe_measurer import LobeMeasurer
21+
from tidy3d.components.microwave.path_integrals import (
1822
AxisAlignedPathIntegral,
1923
CurrentIntegralAxisAligned,
2024
VoltageIntegralAxisAligned,
2125
)
22-
from .rf_material_library import rf_material_library
26+
from tidy3d.components.microwave.rf_material_library import rf_material_library
2327

2428
__all__ = [
2529
"AxisAlignedPathIntegral",

tidy3d/plugins/smatrix/ports/coaxial_lumped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
from tidy3d.components.geometry.utils_2d import increment_float
1616
from tidy3d.components.grid.grid import Grid, YeeGrid
1717
from tidy3d.components.lumped_element import CoaxialLumpedResistor
18+
from tidy3d.components.microwave.path_integrals import AbstractAxesRH
1819
from tidy3d.components.monitor import FieldMonitor
1920
from tidy3d.components.source.current import CustomCurrentSource
2021
from tidy3d.components.source.time import GaussianPulse
2122
from tidy3d.components.types import Axis, Coordinate, Direction, FreqArray, Size
2223
from tidy3d.constants import MICROMETER
2324
from tidy3d.exceptions import SetupError, ValidationError
2425
from tidy3d.plugins.microwave import CustomCurrentIntegral2D, VoltageIntegralAxisAligned
25-
from tidy3d.plugins.microwave.path_integrals import AbstractAxesRH
2626

2727
from .base_lumped import AbstractLumpedPort
2828

0 commit comments

Comments
 (0)