17
17
18
18
import os
19
19
import re
20
- import warnings
21
20
22
21
from pyaedt import pyaedt_function_handler
23
22
from pyaedt .generic .constants import _resolve_unit_system
@@ -767,7 +766,7 @@ def set_variable(
767
766
Whether to define a postprocessing variable.
768
767
The default is ``False``, in which case the variable is not used in postprocessing.
769
768
circuit_parameter : bool, optional
770
- Deprecated. Whether to define a parameter in a circuit design or a local parameter.
769
+ Whether to define a parameter in a circuit design or a local parameter.
771
770
The default is ``True``, in which case a circuit variable is created as a parameter default.
772
771
Returns
773
772
-------
@@ -805,11 +804,6 @@ def set_variable(
805
804
>>> aedtapp.variable_manager.set_variable["$p1"] == "30mm"
806
805
807
806
"""
808
- if not circuit_parameter :
809
- warnings .warn (
810
- "`circuit_parameter` argument is deprecated. Use `$` in variable name instead." , DeprecationWarning
811
- )
812
-
813
807
if not description :
814
808
description = ""
815
809
@@ -820,9 +814,14 @@ def set_variable(
820
814
else :
821
815
tab_name = "LocalVariableTab"
822
816
prop_server = "LocalVariables"
823
- if self ._app .design_type in ["HFSS 3D Layout Design" , "Circuit Design" ]:
817
+ if circuit_parameter and self ._app .design_type in [
818
+ "HFSS 3D Layout Design" ,
819
+ "Circuit Design" ,
820
+ "Maxwell Circuit" ,
821
+ "Twin Builder" ,
822
+ ]:
824
823
tab_name = "DefinitionParameterTab"
825
- if self ._app .design_type in ["HFSS 3D Layout Design" , "Circuit Design" , "Maxwell Circuit" ]:
824
+ if self ._app .design_type in ["HFSS 3D Layout Design" , "Circuit Design" , "Maxwell Circuit" , "Twin Builder" ]:
826
825
prop_server = "Instance:{}" .format (desktop_object .GetName ())
827
826
828
827
prop_type = "VariableProp"
0 commit comments