Skip to content

Commit e0845ca

Browse files
Updating for now
1 parent bbdb287 commit e0845ca

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
@@ -687,7 +687,7 @@ def upload(self) -> None:
687687
self._check_folder(
688688
self.folder_name,
689689
projects_endpoint="tidy3d/projects/rf",
690-
project_endpoint="tidy3d/project/rf",
690+
project_endpoint="tidy3d/project", # TODO update
691691
)
692692
else:
693693
self._check_folder(self.folder_name)

0 commit comments

Comments
 (0)