Skip to content

Commit 8acd1a6

Browse files
Remove circular
1 parent 73d868c commit 8acd1a6

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

tests/test_plugins/smatrix/test_component_modeler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_to_from_file_batch(tmp_path, monkeypatch):
409409
modeler2 = modeler.from_file(fname)
410410

411411
# BREAK this test because it introduces mutability which shouldn't exist
412-
# assert modeler2.batch_cached == modeler2.batch == batch
412+
assert modeler2.batch_cached == modeler2.batch == batch
413413

414414

415415
def test_non_default_path_dir(monkeypatch):

tidy3d/plugins/smatrix/component_modelers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class AbstractComponentModeler(ABC, Tidy3dBaseModel):
105105
)
106106

107107
# TODO properly refactor, plugins should not have web methods.
108-
batch_cached: BatchData = pd.Field(
108+
batch_cached: Batch = pd.Field(
109109
None,
110110
title="Batch (Cached)",
111111
description="DEPRECATED: Optional field to specify ``batch``. Only used as a workaround internally "

tidy3d/web/api/tidy3d_stub.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from tidy3d.components.tcad.simulation.heat import HeatSimulation
2727
from tidy3d.components.tcad.simulation.heat_charge import HeatChargeSimulation
2828
from tidy3d.plugins.mode.mode_solver import ModeSolver
29-
from tidy3d.plugins.smatrix import TerminalComponentModeler
3029
from tidy3d.web.core.file_util import (
3130
read_simulation_from_hdf5,
3231
read_simulation_from_hdf5_gz,
@@ -43,7 +42,6 @@
4342
ModeSolver,
4443
ModeSimulation,
4544
VolumeMesher,
46-
TerminalComponentModeler,
4745
]
4846
SimulationDataType = Union[
4947
SimulationData,
@@ -102,9 +100,6 @@ def from_file(cls, file_path: str) -> SimulationType:
102100
sim = ModeSimulation.from_file(file_path)
103101
elif type_ == "VolumeMesher":
104102
sim = VolumeMesher.from_file(file_path)
105-
elif type_ == "TerminalComponentModeler":
106-
# TODO Remove: An aberration this is here, but alas necessity.
107-
sim = TerminalComponentModeler.from_file(file_path)
108103

109104
return sim
110105

@@ -167,8 +162,6 @@ def get_type(self) -> str:
167162
return TaskType.MODE.name
168163
elif isinstance(self.simulation, VolumeMesher):
169164
return TaskType.VOLUME_MESH.name
170-
if isinstance(self.simulation, TerminalComponentModeler):
171-
return TaskType.TERMINAL_COMPONENT_MODELER.name
172165

173166
def validate_pre_upload(self, source_required) -> None:
174167
"""Perform some pre-checks on instances of component"""

tidy3d/web/core/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class TaskType(str, Enum):
5555
EME = "EME"
5656
MODE = "MODE"
5757
VOLUME_MESH = "VOLUME_MESH"
58-
TERMINAL_COMPONENT_MODELER = "TERMINAL_COMPONENT_MODELER"
5958

6059

6160
class PayType(str, Enum):

0 commit comments

Comments
 (0)