Skip to content

Commit 8e6f3bb

Browse files
Update tidy3d/components/microwave/base.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 3fbdc7f commit 8e6f3bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tidy3d/components/microwave/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ def _default_without_license_warning(cls) -> MicrowaveBaseModel:
1414
"""Internal helper factory function for classes inheriting from ``MicrowaveBaseModel``."""
1515
if config.microwave.suppress_rf_license_warning is True:
1616
return cls()
17+
else:
18+
config.microwave.suppress_rf_license_warning = True
19+
default_constructed = cls()
20+
config.microwave.suppress_rf_license_warning = False
21+
return default_constructed

0 commit comments

Comments
 (0)