File tree Expand file tree Collapse file tree 3 files changed +7
-66
lines changed Expand file tree Collapse file tree 3 files changed +7
-66
lines changed Original file line number Diff line number Diff line change 9
9
from tidy3d .plugins .smatrix .component_modelers .modal import ComponentModeler
10
10
from tidy3d .plugins .smatrix .ports .types import PortReferenceType
11
11
12
- PortSimulationMap = dict [PortReferenceType , SimulationData ] # TODO debate if class
12
+
13
+ class PortSimulationData (Tidy3dBaseModel ):
14
+ ports : tuple [PortReferenceType ]
15
+ data : tuple [SimulationData ]
13
16
14
17
15
18
class ComponentModelerData (Tidy3dBaseModel ):
@@ -20,7 +23,7 @@ class ComponentModelerData(Tidy3dBaseModel):
20
23
"and from which this data was generated." ,
21
24
)
22
25
23
- data : PortSimulationMap = pd .Field (
26
+ data : PortSimulationData = pd .Field (
24
27
...,
25
28
title = "ComponentModeler" ,
26
29
description = "The original :class:`ComponentModeler` object that defines the simulation setup "
Original file line number Diff line number Diff line change 15
15
from tidy3d .log import log
16
16
from tidy3d .plugins .smatrix .component_modelers .terminal import TerminalComponentModeler
17
17
from tidy3d .plugins .smatrix .data .data_array import PortDataArray , TerminalPortDataArray
18
- from tidy3d .plugins .smatrix .data .modal import PortSimulationMap
18
+ from tidy3d .plugins .smatrix .data .modal import PortSimulationData
19
19
from tidy3d .plugins .smatrix .ports .types import TerminalPortType
20
20
from tidy3d .plugins .smatrix .utils import (
21
21
ab_to_s ,
@@ -62,7 +62,7 @@ class TerminalComponentModelerData(Tidy3dBaseModel):
62
62
"and from which this data was generated." ,
63
63
)
64
64
65
- data : PortSimulationMap = pd .Field (
65
+ data : PortSimulationData = pd .Field (
66
66
...,
67
67
title = "Port-Simulation Data" ,
68
68
description = "Stores raw simulation data from each microwave port-specific simulation." ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments