Skip to content

Commit bb315dc

Browse files
Updating for now
1 parent 9c53d21 commit bb315dc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tidy3d/plugins/smatrix/component_modelers/terminal.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from tidy3d.constants import C_0, OHM
2323
from tidy3d.exceptions import SetupError, Tidy3dError, Tidy3dKeyError, ValidationError
2424
from tidy3d.log import log
25+
from tidy3d.plugins.smatrix.component_modelers.base import DEFAULT_DATA_DIR
2526
from tidy3d.plugins.smatrix.data.terminal import PortDataArray, TerminalPortDataArray
2627
from tidy3d.plugins.smatrix.ports.base_lumped import AbstractLumpedPort
2728
from tidy3d.plugins.smatrix.ports.coaxial_lumped import CoaxialLumpedPort
@@ -659,6 +660,11 @@ def get_antenna_metrics_data(
659660
combined_directivity_data, power_incident, power_reflected
660661
)
661662

663+
def run(self, path_dir: str = DEFAULT_DATA_DIR) -> TerminalPortDataArray:
664+
"""Solves for the scattering matrix of the system."""
665+
_ = self.get_path_dir(path_dir)
666+
return self._construct_smatrix()
667+
662668
@cached_property
663669
def batch(self) -> Batch:
664670
""":class:`.Batch` associated with this component modeler."""

tidy3d/web/api/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def upload(self) -> None:
691691
self._check_folder(
692692
self.folder_name,
693693
projects_endpoint="tidy3d/projects/rf",
694-
project_endpoint="tidy3d/project/rf",
694+
project_endpoint="tidy3d/project", # TODO update
695695
)
696696
else:
697697
self._check_folder(self.folder_name)

0 commit comments

Comments
 (0)