Skip to content

Commit e556bbe

Browse files
🔧 ⚠️ Fix RF scope warning
1 parent a6f55f1 commit e556bbe

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

tidy3d/components/lumped_element.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def to_structures(self, grid: Grid = None) -> list[Structure]:
115115
@pd.root_validator(pre=False)
116116
def _warn_rf_license(cls, values):
117117
log.warning(
118-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
118+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
119119
log_once=True,
120120
)
121121
return values
@@ -556,7 +556,7 @@ def complex_permittivity(a: tuple[float, ...], b: tuple[float, ...], freqs: np.n
556556
@pd.root_validator(pre=False)
557557
def _warn_rf_license(cls, values):
558558
log.warning(
559-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
559+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
560560
log_once=True,
561561
)
562562
return values
@@ -815,7 +815,7 @@ def _validate_single_element(cls, val, values):
815815
@pd.root_validator(pre=False)
816816
def _warn_rf_license(cls, values):
817817
log.warning(
818-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
818+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
819819
log_once=True,
820820
)
821821
return values
@@ -900,7 +900,7 @@ def _as_admittance_function(self) -> tuple[tuple[float, ...], tuple[float, ...]]
900900
@pd.root_validator(pre=False)
901901
def _warn_rf_license(cls, values):
902902
log.warning(
903-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
903+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
904904
log_once=True,
905905
)
906906
return values

tidy3d/components/microwave/data/monitor_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def realized_gain(self) -> FieldProjectionAngleDataArray:
199199
@pd.root_validator(pre=False)
200200
def _warn_rf_license(cls, values):
201201
log.warning(
202-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
202+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
203203
log_once=True,
204204
)
205205
return values

tidy3d/components/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ def storage_size(self, num_cells: int, tmesh: ArrayFloat1D) -> int:
12091209
@pydantic.root_validator(pre=False)
12101210
def _warn_rf_license(cls, values):
12111211
log.warning(
1212-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
1212+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
12131213
log_once=True,
12141214
)
12151215
return values

tidy3d/plugins/microwave/array_factor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def simulation_data_from_array_factor(
587587
@pd.root_validator(pre=False)
588588
def _warn_rf_license(cls, values):
589589
log.warning(
590-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
590+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
591591
log_once=True,
592592
)
593593
return values

tidy3d/plugins/microwave/impedance_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _set_data_array_attributes(data_array: IntegralResultTypes) -> IntegralResul
106106
@pd.root_validator(pre=False)
107107
def _warn_rf_license(cls, values):
108108
log.warning(
109-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
109+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
110110
log_once=True,
111111
)
112112
return values

tidy3d/plugins/microwave/lobe_measurer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def plot(
347347
@pd.root_validator(pre=False)
348348
def _warn_rf_license(cls, values):
349349
log.warning(
350-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
350+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
351351
log_once=True,
352352
)
353353
return values

tidy3d/plugins/microwave/path_integrals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def local_dims(self) -> tuple[str, str, str]:
7676
@pd.root_validator(pre=False)
7777
def _warn_rf_license(cls, values):
7878
log.warning(
79-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
79+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
8080
log_once=True,
8181
)
8282
return values

tidy3d/plugins/smatrix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Instantiate on plugin import till we unite with toplevel
1414
warnings.filterwarnings(
1515
"once",
16-
message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
16+
message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
1717
category=FutureWarning,
1818
)
1919

tidy3d/plugins/smatrix/component_modelers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _warn_rf_license(cls, val):
126126
break
127127
if rf_port:
128128
log.warning(
129-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
129+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
130130
log_once=True,
131131
)
132132
return val

tidy3d/plugins/smatrix/component_modelers/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TerminalComponentModeler(AbstractComponentModeler):
5656
@pd.root_validator(pre=False)
5757
def _warn_rf_license(cls, values):
5858
log.warning(
59-
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are have instantiated at least one RF-specific component.",
59+
"ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
6060
log_once=True,
6161
)
6262
return values

0 commit comments

Comments
 (0)