Skip to content

Commit

Permalink
backwards compatible imports for smatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex authored and momchil-flex committed Apr 10, 2024
1 parent 8ba10d4 commit f23abb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_plugins/test_component_modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,7 @@ def test_batch_filename(tmp_path):
modeler = make_component_modeler(path_dir=str(tmp_path))
path = modeler._batch_path
assert path


def test_import_smatrix_smatrix():
from tidy3d.plugins.smatrix.smatrix import Port, ComponentModeler
6 changes: 6 additions & 0 deletions tidy3d/plugins/smatrix/smatrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# backwards compatibility support for ``from tidy3d.plugins.smatrix.smatrix import ``

from .ports.modal import Port
from .component_modelers.modal import ComponentModeler

__all__ = ["Port", "ComponentModeler"]

0 comments on commit f23abb5

Please sign in to comment.